From cbc363f671989bc3fdfaccc88d47ee675328237a Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 2 Dec 2022 22:42:39 +0100 Subject: [PATCH] Assume getgrgid_r(3) exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is required by POSIX.1-2001. Cc: Christian Göttsche Signed-off-by: Alejandro Colomar --- configure.ac | 2 +- libmisc/xgetgrgid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b9487c3b..a50a08db 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 \ - getgrgid_r getspnam_r \ + getspnam_r \ memset_s explicit_bzero) AC_SYS_LARGEFILE diff --git a/libmisc/xgetgrgid.c b/libmisc/xgetgrgid.c index fe99929b..66398c5f 100644 --- a/libmisc/xgetgrgid.c +++ b/libmisc/xgetgrgid.c @@ -35,7 +35,7 @@ #define ARG_TYPE gid_t #define ARG_NAME gid #define DUP_FUNCTION __gr_dup -#define HAVE_FUNCTION_R (defined HAVE_GETGRGID_R) +#define HAVE_FUNCTION_R 1 #include "xgetXXbyYY.c"