summaryrefslogtreecommitdiffstats
path: root/src/vcl/vcom_socket_wrapper.h
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-11-07 02:20:07 -0500
committerFlorin Coras <florin.coras@gmail.com>2017-11-07 08:40:57 +0000
commit5917939256af392914d8a648de0c3287042ddbf6 (patch)
tree6e22c50d626bc999df401d8f19ab956378891e55 /src/vcl/vcom_socket_wrapper.h
parentbfc29ba442dbb65599f29fe5aa44c6219ed0d3a8 (diff)
VCL-LDPRELOAD: enable accept4() wrapper
Change-Id: I56567953fb8329315393047913e30fc7f2242bdb Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vcl/vcom_socket_wrapper.h')
-rw-r--r--src/vcl/vcom_socket_wrapper.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/vcl/vcom_socket_wrapper.h b/src/vcl/vcom_socket_wrapper.h
index 9e85ecf2b6c..f44b5a8ef3b 100644
--- a/src/vcl/vcom_socket_wrapper.h
+++ b/src/vcl/vcom_socket_wrapper.h
@@ -66,6 +66,7 @@
#include <poll.h>
#include <sys/uio.h>
#include <stdlib.h>
+#include <vcl/vcom.h>
/* GCC have printf type attribute check. */
@@ -104,13 +105,10 @@
* has probably something todo with with the linker.
* So we need load each function at the point it is called the first time.
*/
-#ifdef HAVE_ACCEPT4
-int
-libc_accept4 (int sockfd,
- struct sockaddr *addr, socklen_t * addrlen, int flags);
-#else /* HAVE_ACCEPT4 */
+int libc_accept4 (int sockfd, struct sockaddr *addr, socklen_t * addrlen,
+ int flags);
+
int libc_accept (int sockfd, struct sockaddr *addr, socklen_t * addrlen);
-#endif /* HAVE_ACCEPT4 */
int libc_bind (int sockfd, const struct sockaddr *addr, socklen_t addrlen);