X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvcom_socket_wrapper.h;h=ce03ebe83da0872dd606c1f63e1f9e581936dcdc;hb=dcf55ce28d558ddeb1fd93904b54dbb843430a0f;hp=9e85ecf2b6c783f10d0d88a005100cc5d9c07a17;hpb=5c7cf1cc5358d137160be1619981e7eea9a7402f;p=vpp.git diff --git a/src/vcl/vcom_socket_wrapper.h b/src/vcl/vcom_socket_wrapper.h index 9e85ecf2b6c..ce03ebe83da 100644 --- a/src/vcl/vcom_socket_wrapper.h +++ b/src/vcl/vcom_socket_wrapper.h @@ -66,6 +66,7 @@ #include #include #include +#include /* 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); @@ -161,6 +159,8 @@ int libc_recvmsg (int sockfd, struct msghdr *msg, int flags); int libc_send (int sockfd, const void *buf, size_t len, int flags); +ssize_t libc_sendfile (int out_fd, int in_fd, off_t * offset, size_t len); + int libc_sendmsg (int sockfd, const struct msghdr *msg, int flags); int