diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-17 05:11:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:18:54 -0500 |
commit | 4a854fe809ba617336db3e1d277e00c7ef95c55f (patch) | |
tree | d1a57833acd0ba4ed43e8076cfe2cb6d3ea842a3 /source4/lib/socket_wrapper | |
parent | 5d6a38004ad45ae58a0a064132d383d3d3ee4c99 (diff) | |
download | samba-4a854fe809ba617336db3e1d277e00c7ef95c55f.tar.gz samba-4a854fe809ba617336db3e1d277e00c7ef95c55f.tar.xz samba-4a854fe809ba617336db3e1d277e00c7ef95c55f.zip |
r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.
metze
(This used to be commit 26228e4b2e8debd84caebe84bb34bfbbf2ad405c)
Diffstat (limited to 'source4/lib/socket_wrapper')
-rw-r--r-- | source4/lib/socket_wrapper/socket_wrapper.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/source4/lib/socket_wrapper/socket_wrapper.c b/source4/lib/socket_wrapper/socket_wrapper.c index fe0b4dfe76..5417f70a06 100644 --- a/source4/lib/socket_wrapper/socket_wrapper.c +++ b/source4/lib/socket_wrapper/socket_wrapper.c @@ -21,11 +21,28 @@ */ #ifdef _SAMBA_BUILD_ + +#define SOCKET_WRAPPER_NOT_REPLACE #include "includes.h" -#undef SOCKET_WRAPPER #include "system/network.h" #include "system/filesys.h" -#else + +#ifndef _DLINKLIST_H +#include "lib/util/dlinklist.h" +#endif + +#ifdef malloc +#undef malloc +#endif +#ifdef calloc +#undef calloc +#endif +#ifdef strdup +#undef strdup +#endif + +#else /* _SAMBA_BUILD_ */ + #include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h> @@ -37,8 +54,10 @@ #include <unistd.h> #include <string.h> #include <stdio.h> + +#error "dlinklist.h missing" + #endif -#include "lib/util/dlinklist.h" /* LD_PRELOAD doesn't work yet, so REWRITE_CALLS is all we support * for now */ |