From 84a0befd3030df582bcd1e2d3e9fa075a67b3467 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Tue, 3 Oct 2023 10:34:41 +0100 Subject: [PATCH] Add getgrouplist() detection functionality Defines the macro HAVE_GETGROUPLIST if getgrouplist() is available, and defines the type passed to the GID array as GETGROUPS_T --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 414ce3b9..2f3d6938 100644 --- a/configure.ac +++ b/configure.ac @@ -217,7 +217,10 @@ AM_COND_IF([DEVEL_DEBUG], AC_SEARCH_LIBS([setusercontext], [util]) # Define HAVE_XXXXX macros for some system functions -AC_CHECK_FUNCS([setusercontext]) +AC_CHECK_FUNCS([setusercontext getgrouplist]) + +# The type used by getgrouplist() is the same type used by getgroups() +AC_TYPE_GETGROUPS # Don't fail without working nasm if rfxcodec is not enabled if test "x$enable_rfxcodec" != xyes; then