diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-03-03 15:37:17 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-03-03 22:57:26 +0100 |
commit | c9ae8102099ed66c776c79e88f1a582f3e213fbc (patch) | |
tree | fad515c073d5d7a32c3266e8ae6c6eaa9b4cb696 | |
parent | ec028b555bbca84e1f949c6632099f8407c0d695 (diff) | |
download | samba-c9ae8102099ed66c776c79e88f1a582f3e213fbc.tar.gz samba-c9ae8102099ed66c776c79e88f1a582f3e213fbc.tar.bz2 samba-c9ae8102099ed66c776c79e88f1a582f3e213fbc.zip |
socket_wrapper: replace recvmsg() correctly
metze
-rw-r--r-- | lib/socket_wrapper/socket_wrapper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.h b/lib/socket_wrapper/socket_wrapper.h index 472aa19ced..77af6feadd 100644 --- a/lib/socket_wrapper/socket_wrapper.h +++ b/lib/socket_wrapper/socket_wrapper.h @@ -50,6 +50,7 @@ int swrap_setsockopt(int s, int level, int optname, const void *optval, so ssize_t swrap_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen); ssize_t swrap_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen); ssize_t swrap_sendmsg(int s, const struct msghdr *msg, int flags); +ssize_t swrap_recvmsg(int s, struct msghdr *msg, int flags); int swrap_ioctl(int s, int req, void *ptr); ssize_t swrap_recv(int s, void *buf, size_t len, int flags); ssize_t swrap_read(int s, void *buf, size_t len); @@ -115,6 +116,11 @@ int swrap_close(int); #endif #define sendmsg(s,msg,flags) swrap_sendmsg(s,msg,flags) +#ifdef recvmsg +#undef recvmsg +#endif +#define recvmsg(s,msg,flags) swrap_recvmsg(s,msg,flags) + #ifdef ioctl #undef ioctl #endif |