DEVEL15-windows-libadmin-closesocket-20080228

LICENSE MIT

On Windows close() does not apply to sockets, use closesocket()
instead.


(cherry picked from commit 502aca9e8ccff36d0c10203c66200e526d2273b3)
This commit is contained in:
Jeffrey Altman 2008-02-29 01:27:57 +00:00
parent 7e6a650ce5
commit 47064e9243

View File

@ -24,6 +24,7 @@ RCSID
#include <afs/afssyscalls.h> #include <afs/afssyscalls.h>
#include <winsock2.h> #include <winsock2.h>
#include <afs/fs_utils.h> #include <afs/fs_utils.h>
#define close(x) closesocket(x)
#else #else
#include <sys/socket.h> #include <sys/socket.h>
#include <netinet/in.h> #include <netinet/in.h>