From 336c80ef02f72f74b4e1676f551850bd2dc16b7c Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 10 Sep 2012 14:33:30 +0000 Subject: [PATCH] updated net_sys.h from uhexen2 git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@721 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/net_sys.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Quake/net_sys.h b/Quake/net_sys.h index a3c0f90b..00a04ecf 100644 --- a/Quake/net_sys.h +++ b/Quake/net_sys.h @@ -82,15 +82,12 @@ #include #include -#include - #if defined(__sun) || defined(sun) #include #include #endif /* __sunos__ */ - +#include #include - #include #include #include @@ -99,6 +96,11 @@ typedef int sys_socket_t; #define INVALID_SOCKET (-1) #define SOCKET_ERROR (-1) +#if defined(__APPLE__) && defined(SO_NKE) && !defined(SO_NOADDRERR) + /* ancient Mac OS X SDKs 10.2 and older are missing socklen_t */ +typedef int socklen_t; /* defining as signed int to match the old api */ +#endif /* ancient OSX SDKs */ + #define SOCKETERRNO errno #define ioctlsocket ioctl #define closesocket close @@ -122,11 +124,9 @@ COMPILE_TIME_ASSERT(sockaddr, offsetof(struct sockaddr, sa_family) == SA_FAM_OFF #include #include #include - #include #include #include - #include #include #include