diff options
author | Michael Adam <obnox@samba.org> | 2011-11-20 23:45:05 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2011-11-25 13:24:34 +0100 |
commit | 9b42b8a346b80ff5df9125c2ba27315ef3bc57e5 (patch) | |
tree | d8d39ef243b4616b3b9e1fb0bd9f3ba0549ce97d /lib/socket_wrapper | |
parent | 87026b6dc360d7caf5dcc0f49d67f51e924314fe (diff) | |
download | samba-9b42b8a346b80ff5df9125c2ba27315ef3bc57e5.tar.gz |
socket_wrapper: use libreplace headers based on "#ifdef HAVE_LIBREPLACE"
instead of "#ifdef _SAMBA_BUILD_".
This is to be able to use socket_wrapper in other projects
that also use libreplace.
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r-- | lib/socket_wrapper/socket_wrapper.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index 7ebbfb3b75b..2c24ab79241 100644 --- a/lib/socket_wrapper/socket_wrapper.c +++ b/lib/socket_wrapper/socket_wrapper.c @@ -39,7 +39,9 @@ is set. */ -#ifdef _SAMBA_BUILD_ +#include "config.h" + +#ifdef HAVE_LIBREPLACE #define SOCKET_WRAPPER_NOT_REPLACE #include "replace.h" @@ -47,7 +49,7 @@ #include "system/filesys.h" #include "system/time.h" -#else /* _SAMBA_BUILD_ */ +#else /* HAVE_LIBREPLACE */ #include <sys/types.h> #include <sys/time.h> @@ -66,7 +68,7 @@ #include <stdio.h> #include <stdint.h> -#endif +#endif /* HAVE_LIBREPLACE */ #ifndef _PUBLIC_ #define _PUBLIC_ |