structure checks for glibc which only has __e_termination visible
when _GNU_SOURCE is *not* defined.
fi
+_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS $OSDEFS"
if test $ac_cv_header_utmpx_h = "yes"; then
ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
#include <sys/types.h>
fi
fi
+CFLAGS="$_CFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
$as_echo_n "checking type of array argument to getgroups... " >&6; }
SUDO_SOCK_SA_LEN
dnl
dnl Check for utmp/utmpx struct members.
+dnl We need to include OSDEFS for glibc which only has __e_termination
+dnl visible when _GNU_SOURCE is *not* defined.
dnl
+_CFLAGS="$CFLAGS"
+CFLAGS="$CFLAGS $OSDEFS"
if test $ac_cv_header_utmpx_h = "yes"; then
AC_CHECK_MEMBERS([struct utmpx.ut_id, struct utmpx.ut_pid, struct utmpx.ut_tv, struct utmpx.ut_type], [], [], [
#include <sys/types.h>
#include <utmp.h>
])
fi
+CFLAGS="$_CFLAGS"
dnl
dnl Function checks