From af3999aadf4278e2b9ade72b5a129a0e842a9c80 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 25 Jun 2008 14:53:28 +0000 Subject: [PATCH] include both pwd.h and grp.h in system.c and autoconf them --- configure.ac | 2 +- src/system.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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(). -- 2.39.5