summaryrefslogtreecommitdiff
path: root/lib/socket_wrapper
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-11-20 23:45:05 +0100
committerMichael Adam <obnox@samba.org>2011-11-25 13:24:34 +0100
commit9b42b8a346b80ff5df9125c2ba27315ef3bc57e5 (patch)
treed8d39ef243b4616b3b9e1fb0bd9f3ba0549ce97d /lib/socket_wrapper
parent87026b6dc360d7caf5dcc0f49d67f51e924314fe (diff)
downloadsamba-9b42b8a346b80ff5df9125c2ba27315ef3bc57e5.tar.gz
samba-9b42b8a346b80ff5df9125c2ba27315ef3bc57e5.tar.bz2
samba-9b42b8a346b80ff5df9125c2ba27315ef3bc57e5.zip
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.c8
1 files changed, 5 insertions, 3 deletions
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 <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_