summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-07-03 10:20:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:10 -0500
commitd10c664b6151d3296d2fde5dc9833ea90e7ea0e8 (patch)
treef3cb4c16f8307221b32a6422d903ba2d6ca9d5fb /source3/include
parent22ea1952c8d74a1a54af5e507d124c1e30da067f (diff)
downloadsamba-d10c664b6151d3296d2fde5dc9833ea90e7ea0e8.tar.gz
samba-d10c664b6151d3296d2fde5dc9833ea90e7ea0e8.tar.bz2
samba-d10c664b6151d3296d2fde5dc9833ea90e7ea0e8.zip
r8092: Attempt to fix the socket wrapper stuff for Samba 3.
Volker (This used to be commit 53c22c036588238d0d732f7dbf7329921f593191)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/socket_wrapper.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/source3/include/socket_wrapper.h b/source3/include/socket_wrapper.h
index 6da5a2980c..d8815a2575 100644
--- a/source3/include/socket_wrapper.h
+++ b/source3/include/socket_wrapper.h
@@ -32,17 +32,17 @@ ssize_t swrap_sendto(int s, const void *buf, size_t len, int flags, const str
int swrap_close(int);
#ifdef SOCKET_WRAPPER_REPLACE
-#define accept swrap_accept
-#define connect swrap_connect
-#define bind swrap_bind
-#define getpeername swrap_getpeername
-#define getsockname swrap_getsockname
-#define getsockopt swrap_getsockopt
-#define setsockopt swrap_setsockopt
-#define recvfrom swrap_recvfrom
-#define sendto swrap_sendto
-#define socket swrap_socket
-#define close swrap_close
+#define accept(s,addr,addrlen) swrap_accept(s,addr,addrlen)
+#define connect(s,serv_addr,addrlen) swrap_connect(s,serv_addr,addrlen)
+#define bind(s,myaddr,addrlen) swrap_bind(s,myaddr,addrlen)
+#define getpeername(s,name,addrlen) swrap_getpeername(s,name,addrlen)
+#define getsockname(s,name,addrlen) swrap_getsockname(s,name,addrlen)
+#define getsockopt(s,level,optname,optval,optlen) swrap_getsockopt(s,level,optname,optval,optlen)
+#define setsockopt(s,level,optname,optval,optlen) swrap_setsockopt(s,level,optname,optval,optlen)
+#define recvfrom(s,buf,len,flags,from,fromlen) swrap_recvfrom(s,buf,len,flags,from,fromlen)
+#define sendto(s,buf,len,flags,to,tolen) swrap_sendto(s,buf,len,flags,to,tolen)
+#define socket(domain,type,protocol) swrap_socket(domain,type,protocol)
+#define close(s) swrap_close(s)
#endif
#endif /* __SOCKET_WRAPPER_H__ */