diff --git a/engine/common/netinc.h b/engine/common/netinc.h index b47da8367..3b982f1ac 100644 --- a/engine/common/netinc.h +++ b/engine/common/netinc.h @@ -113,6 +113,10 @@ #ifdef IPPROTO_IPV6 #define HAVE_IPV6 #endif + + #ifndef SOCK_CLOEXEC + #define SOCK_CLOEXEC 0 + #endif #else #include #include @@ -159,6 +163,10 @@ // #endif #define SOCKET int + + #ifndef SOCK_CLOEXEC + #define SOCK_CLOEXEC 0 + #endif #endif #if defined(_WIN32) @@ -381,8 +389,4 @@ vfsfile_t *FS_OpenTCPSocket(SOCKET socket, qboolean conpending, const char *peer #endif vfsfile_t *FS_OpenTCP(const char *name, int defaultport); -/*#ifndef SOCK_CLOEXEC -#define SOCK_CLOEXEC naught -#endif*/ - #endif //NETINC_INCLUDED