Assume getgrnam_r(3) exists

It is required by POSIX.1-2001.

Cc: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar 2022-12-02 22:41:48 +01:00 committed by Serge Hallyn
parent e5e5df1966
commit 88eb38f4ab
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ AC_CHECK_FUNCS(arc4random_buf futimes \
getentropy getrandom getspnam getusershell \ getentropy getrandom getspnam getusershell \
getutent initgroups lckpwdf lutimes \ getutent initgroups lckpwdf lutimes \
setgroups updwtmp updwtmpx innetgr \ setgroups updwtmp updwtmpx innetgr \
getgrnam_r getgrgid_r getspnam_r \ getgrgid_r getspnam_r \
memset_s explicit_bzero) memset_s explicit_bzero)
AC_SYS_LARGEFILE AC_SYS_LARGEFILE

View File

@ -35,7 +35,7 @@
#define ARG_TYPE const char * #define ARG_TYPE const char *
#define ARG_NAME name #define ARG_NAME name
#define DUP_FUNCTION __gr_dup #define DUP_FUNCTION __gr_dup
#define HAVE_FUNCTION_R (defined HAVE_GETGRNAM_R) #define HAVE_FUNCTION_R 1
#include "xgetXXbyYY.c" #include "xgetXXbyYY.c"