1 // unix.h - duplicates some MS defines
7 // same thing that's in FS2_Open (credit: Mike Harris)
8 #define DIR_SEPARATOR_CHAR '/'
9 #define DIR_SEPARATOR_STR "/"
14 extern int filelength (int fd);
16 #define ioctlsocket(A,B,C) ioctl(A,B,C)
17 #define closesocket(A) close(A)
19 #define SOCKET_ERROR -1
20 #define INVALID_SOCKET -1
22 extern int WSAGetLastError ();
24 #define WSAEALREADY EALREADY
25 #define WSAEINVAL EINVAL
26 #define WSAEWOULDBLOCK EAGAIN
27 #define WSAEISCONN EISCONN
28 #define WSAECONNRESET ECONNRESET
29 #define WSAECONNABORTED ECONNABORTED
30 #define WSAESHUTDOWN ESHUTDOWN
31 #define WSAENOTSOCK ENOTSOCK