Wrap SOCK_CLOEXEC in ifdef, from Harald Barth
This commit is contained in:
@@ -1039,7 +1039,7 @@ void
|
|||||||
rk_qsort(void *, size_t, size_t, int (*)(const void *, const void *));
|
rk_qsort(void *, size_t, size_t, int (*)(const void *, const void *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__linux__) && SOCK_CLOEXEC && !defined(SOCKET_WRAPPER_REPLACE)
|
#if defined(__linux__) && defined(SOCK_CLOEXEC) && !defined(SOCKET_WRAPPER_REPLACE)
|
||||||
#undef socket
|
#undef socket
|
||||||
#define socket(_fam,_type,_prot) rk_socket(_fam,_type,_prot)
|
#define socket(_fam,_type,_prot) rk_socket(_fam,_type,_prot)
|
||||||
int ROKEN_LIB_FUNCTION rk_socket(int, int, int);
|
int ROKEN_LIB_FUNCTION rk_socket(int, int, int);
|
||||||
|
Reference in New Issue
Block a user