libreplace: add check for NSS_WRAPPER_DISABLE similar to SOCKET_WRAPPER_DISABLE
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Feb 2010 07:55:44 +0000 (08:55 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Feb 2010 08:59:23 +0000 (09:59 +0100)
metze

lib/replace/system/passwd.h

index b41608c551b5058b0e64236ba43b414726cf2a39..aaea9c8344e75b0dc02c972ffc83dd1ec8273ae6 100644 (file)
@@ -101,10 +101,12 @@ char *rep_getpass(const char *prompt);
 #endif
 
 #ifdef NSS_WRAPPER
+#ifndef NSS_WRAPPER_DISABLE
 #ifndef NSS_WRAPPER_NOT_REPLACE
 #define NSS_WRAPPER_REPLACE
-#endif
+#endif /* NSS_WRAPPER_NOT_REPLACE */
 #include "../nss_wrapper/nss_wrapper.h"
-#endif
+#endif /* NSS_WRAPPER_DISABLE */
+#endif /* NSS_WRAPPER */
 
 #endif