From: Marko Kreen Date: Wed, 25 Jun 2008 14:53:28 +0000 (+0000) Subject: include both pwd.h and grp.h in system.c and autoconf them X-Git-Tag: pgbouncer_1_2_rc2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af3999aadf4278e2b9ade72b5a129a0e842a9c80;p=pgbouncer include both pwd.h and grp.h in system.c and autoconf them --- diff --git a/configure.ac b/configure.ac index 3f1b047..d2d237a 100644 --- a/configure.ac +++ b/configure.ac @@ -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], [], [], [ diff --git a/src/system.c b/src/system.c index ca0295a..d9a8159 100644 --- a/src/system.c +++ b/src/system.c @@ -31,8 +31,12 @@ #ifdef HAVE_SYS_UCRED_H #include #endif - +#ifdef HAVE_PWD_H #include +#endif +#ifdef HAVE_GRP_H +#include +#endif /* * Minimal spec-conforming implementations of strlcpy(), strlcat().