1Upstream-Status: Pending
2
3diff --git a/configure.ac b/configure.ac
4index 58347d8..8c7fca2 100644
5--- a/configure.ac
6+++ b/configure.ac
7@@ -77,15 +77,10 @@ AC_TYPE_UINT64_T
8
9 dnl AC_TYPE_GETGROUPS seems broken on recent MacOS, so:
10 AC_MSG_CHECKING([Figure out if getgrouplist() needs gid_t or int])
11-oldcflags="$CFLAGS"
12-export CFLAGS=-Werror
13 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
14 #include <unistd.h>
15-#include <grp.h>
16-  ]], [[
17-gid_t groups[32]; int ngroups; const char* user = "root";
18-getgrouplist(user, 1, groups, &ngroups);
19-  ]])],[
20+int getgroups(int gidsetsize, gid_t grouplist[]);
21+  ]], [[  ]])],[
22     AC_MSG_RESULT(gid_t)
23     AC_DEFINE(GETGROUPS_T,[gid_t])
24   ],[
25@@ -93,7 +88,6 @@ getgrouplist(user, 1, groups, &ngroups);
26     AC_DEFINE(GETGROUPS_T,[int])
27   ]
28 )
29-export CFLAGS="$oldcflags"
30
31 dnl Checks for library functions.
32 AC_CHECK_FUNCS(gethostname gettimeofday mkfifo select socket strdup \
33