From 9b42b8a346b80ff5df9125c2ba27315ef3bc57e5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 20 Nov 2011 23:45:05 +0100 Subject: 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. --- lib/socket_wrapper/socket_wrapper.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/socket_wrapper') diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c index 7ebbfb3b75..2c24ab7924 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 #include @@ -66,7 +68,7 @@ #include #include -#endif +#endif /* HAVE_LIBREPLACE */ #ifndef _PUBLIC_ #define _PUBLIC_ -- cgit