libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
authorStefan Metzmacher <metze@samba.org>
Thu, 26 Feb 2009 09:29:55 +0000 (10:29 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 26 Feb 2009 09:48:10 +0000 (10:48 +0100)
metze

lib/replace/system/network.h

index 40d20db2d4a4ac7fc3504f8e092cf7a80d47c5d9..f135d175d43dcecfc6a2ec7bc92eb5d805528ce3 100644 (file)
@@ -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