src: Add configure check for shadow.h
authorAndreas Schneider <asn@samba.org>
Tue, 6 Oct 2015 08:19:48 +0000 (10:19 +0200)
committerMichael Adam <obnox@samba.org>
Mon, 11 Jan 2016 11:25:27 +0000 (12:25 +0100)
This is the first part to fix FreeBSD.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/nss_wrapper/nss_wrapper.c

index ca57dfbc6fa685757d0b0d76d94956d71bebb8ca..978c3071d50452144cd8a64b94d4d5ef21c5d98c 100644 (file)
@@ -61,7 +61,9 @@
 
 #include <pwd.h>
 #include <grp.h>
+#ifdef HAVE_SHADOW_H
 #include <shadow.h>
+#endif /* HAVE_SHADOW_H */
 
 #include <netdb.h>
 #include <arpa/inet.h>