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