Wrap SOCK_CLOEXEC in ifdef, from Harald Barth

This commit is contained in:
Love Hornquist Astrand
2010-04-30 15:15:58 +02:00
parent 994e8641c0
commit eec74bd2fe

View File

@@ -1039,7 +1039,7 @@ void
rk_qsort(void *, size_t, size_t, int (*)(const void *, const void *));
#endif
#if defined(__linux__) && SOCK_CLOEXEC && !defined(SOCKET_WRAPPER_REPLACE)
#if defined(__linux__) && defined(SOCK_CLOEXEC) && !defined(SOCKET_WRAPPER_REPLACE)
#undef socket
#define socket(_fam,_type,_prot) rk_socket(_fam,_type,_prot)
int ROKEN_LIB_FUNCTION rk_socket(int, int, int);