Adapt for Linux with SOCK_CLOEXEC, patch from Harald Barth

This commit is contained in:
Love Hornquist Astrand
2010-01-26 10:46:51 -08:00
parent 4376b6c8b1
commit 908ece3604
4 changed files with 11 additions and 2 deletions

View File

@@ -1036,6 +1036,7 @@ rk_qsort(void *, size_t, size_t, int (*)(const void *, const void *));
#if defined(__LINUX__) && 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);
#endif
#ifdef SOCKET_WRAPPER_REPLACE