From 5aab5195d8269fc9d6239195c3ca1f5813223a87 Mon Sep 17 00:00:00 2001 From: mid Date: Tue, 5 Sep 2000 05:19:26 +0000 Subject: [PATCH] close->closesocket for win32, and socket() stupidity in aim_ft. --- aim_ft.c | 2 +- faim/aim.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aim_ft.c b/aim_ft.c index 26918e0..b3bf8f7 100644 --- a/aim_ft.c +++ b/aim_ft.c @@ -683,7 +683,7 @@ faim_internal int aim_listenestablish(u_short portnum) const int on = 1; struct sockaddr_in sockin; - if ((listenfd = socket(PF_INET, SOCK_STREAM, AF_INET)) < 0) { + if ((listenfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("socket(listenfd)"); return -1; } diff --git a/faim/aim.h b/faim/aim.h index ddeaadd..393a50a 100644 --- a/faim/aim.h +++ b/faim/aim.h @@ -62,6 +62,7 @@ #define sleep Sleep #define socklen_t int /* this must be a POSIXy thing */ #define snprintf _snprintf /* I'm not sure whats wrong with Microsoft here */ +#define close(x) closesocket(x) /* no comment */ #endif #if defined(mach) && defined(__APPLE__) -- 2.45.2