summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-02-26 10:29:55 +0100
committerStefan Metzmacher <metze@samba.org>2009-02-26 10:48:10 +0100
commitc21ae8d1bfd4423cf1c4a62c11ba228773548de2 (patch)
tree8f83867eb14f1230271ffd8aed72f4477411eeb7
parent64662cb0c34425f7a0ccc66e43c21b7b69451ca9 (diff)
downloadsamba-c21ae8d1bfd4423cf1c4a62c11ba228773548de2.tar.gz
samba-c21ae8d1bfd4423cf1c4a62c11ba228773548de2.tar.bz2
samba-c21ae8d1bfd4423cf1c4a62c11ba228773548de2.zip
libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
metze
-rw-r--r--lib/replace/system/network.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h
index 40d20db2d4..f135d175d4 100644
--- a/lib/replace/system/network.h
+++ b/lib/replace/system/network.h
@@ -327,10 +327,12 @@ struct addrinfo {
#endif
#ifdef SOCKET_WRAPPER
+#ifndef SOCKET_WRAPPER_DISABLE
#ifndef SOCKET_WRAPPER_NOT_REPLACE
#define SOCKET_WRAPPER_REPLACE
-#endif
+#endif /* SOCKET_WRAPPER_NOT_REPLACE */
#include "../socket_wrapper/socket_wrapper.h"
-#endif
+#endif /* SOCKET_WRAPPER_DISABLE */
+#endif /* SOCKET_WRAPPER */
#endif