]> granicus.if.org Git - pgbouncer/commitdiff
include both pwd.h and grp.h in system.c and autoconf them
authorMarko Kreen <markokr@gmail.com>
Wed, 25 Jun 2008 14:53:28 +0000 (14:53 +0000)
committerMarko Kreen <markokr@gmail.com>
Wed, 25 Jun 2008 14:53:28 +0000 (14:53 +0000)
configure.ac
src/system.c

index 3f1b047639962d19d82f07d5d68a676dae41b9df..d2d237a135551b1b2dd049393eaa7caa30215cb8 100644 (file)
@@ -75,7 +75,7 @@ if test x"$GCC" = xyes; then
 fi
 
 dnl Checks for header files.
-AC_CHECK_HEADERS([crypt.h sys/param.h sys/socket.h libgen.h])
+AC_CHECK_HEADERS([crypt.h sys/param.h sys/socket.h libgen.h pwd.h grp.h])
 
 dnl ucred.h may have prereqs
 AC_CHECK_HEADERS([ucred.h sys/ucred.h], [], [], [
index ca0295ac1d4b076921690ed76887a8169dd181f9..d9a815932273369df70608132fc8f90b7c5932c4 100644 (file)
 #ifdef HAVE_SYS_UCRED_H
 #include <sys/ucred.h>
 #endif
-
+#ifdef HAVE_PWD_H
 #include <pwd.h>
+#endif
+#ifdef HAVE_GRP_H
+#include <grp.h>
+#endif
 
 /*
  * Minimal spec-conforming implementations of strlcpy(), strlcat().