diff --git a/configure.ac b/configure.ac index 470db220..b9487c3b 100644 --- a/configure.ac +++ b/configure.ac @@ -49,7 +49,7 @@ AC_CHECK_FUNCS(arc4random_buf futimes \ getentropy getrandom getspnam getusershell \ getutent initgroups lckpwdf lutimes \ setgroups updwtmp updwtmpx innetgr \ - getgrnam_r getgrgid_r getspnam_r \ + getgrgid_r getspnam_r \ memset_s explicit_bzero) AC_SYS_LARGEFILE diff --git a/libmisc/xgetgrnam.c b/libmisc/xgetgrnam.c index 66d6f933..877ec03a 100644 --- a/libmisc/xgetgrnam.c +++ b/libmisc/xgetgrnam.c @@ -35,7 +35,7 @@ #define ARG_TYPE const char * #define ARG_NAME name #define DUP_FUNCTION __gr_dup -#define HAVE_FUNCTION_R (defined HAVE_GETGRNAM_R) +#define HAVE_FUNCTION_R 1 #include "xgetXXbyYY.c"