]> git.sur5r.net Git - openldap/commitdiff
Clean up header inclusion
authorKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 03:09:52 +0000 (03:09 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 15 Mar 2001 03:09:52 +0000 (03:09 +0000)
libraries/liblutil/passwd.c

index 2c6546421bd8962c759ccc506cc94e7628486f0b..2d78acdbc45274378a76962cc91abc9b333ddc74 100644 (file)
 #include <ac/param.h>
 
 #ifdef SLAPD_CRYPT
-#include <ac/crypt.h>
-#endif
+# include <ac/crypt.h>
 
-#ifdef HAVE_SHADOW_H
+# if defined( HAVE_GETPWNAM ) && defined( HAVE_PW_PASSWD )
+#  ifdef HAVE_SHADOW_H
 #      include <shadow.h>
-#endif
-#ifdef HAVE_PWD_H
+#  endif
+#  ifdef HAVE_PWD_H
 #      include <pwd.h>
-#endif
-#ifdef HAVE_AIX_SECURITY
+#  endif
+#  ifdef HAVE_AIX_SECURITY
 #      include <userpw.h>
+#  endif
+# endif
 #endif
 
 #include <lber.h>