configure.ac, unix/Daemon: check for initgroups() at configure time

The initgroups() manpage says we need to check for _BSD_SOURCE.  The
thing is that glibc deprecated this macro, and doesn't define it
anymore, effectively breaking all MPD supplementary groups.

The real fix is to check for initgroups() availability at configure
time, instead of relying on the deprecated _BSD_SOURCE macro.
This commit is contained in:
Max Kellermann
2016-02-23 20:13:34 +01:00
parent 1e0ad1f6bf
commit b3460f3f54
3 changed files with 3 additions and 1 deletions

View File

@@ -206,6 +206,7 @@ if test x$host_is_linux = xyes; then
fi
AC_CHECK_FUNCS(getpwnam_r getpwuid_r)
AC_CHECK_FUNCS(initgroups)
AC_CHECK_FUNCS(strndup)
if test x$host_is_linux = xyes; then