as_fn_append ac_header_list " sys/sysmacros.h"
as_fn_append ac_func_list " killpg"
as_fn_append ac_func_list " nl_langinfo"
-as_fn_append ac_func_list " reallocarray"
as_fn_append ac_func_list " strftime"
as_fn_append ac_func_list " tzset"
as_fn_append ac_func_list " seteuid"
-
-
for ac_func in getgrouplist
do :
ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
done
+fi
+done
+
+for ac_func in reallocarray
+do :
+ ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
+if test "x$ac_cv_func_reallocarray" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_REALLOCARRAY 1
+_ACEOF
+
+else
+
+
+ for _sym in sudo_reallocarray; do
+ COMPAT_EXP="${COMPAT_EXP}${_sym}
+"
+ done
+
+
fi
done
dnl Function checks
dnl
AC_FUNC_GETGROUPS
-AC_CHECK_FUNCS_ONCE([killpg nl_langinfo reallocarray strftime tzset])
+AC_CHECK_FUNCS_ONCE([killpg nl_langinfo strftime tzset])
AC_CHECK_FUNCS([getgrouplist], [], [
case "$host_os" in
aix*)
SUDO_APPEND_COMPAT_EXP(sudo_getline)
AC_CHECK_FUNCS([fgetln])
])
+AC_CHECK_FUNCS([reallocarray], [], [
+ SUDO_APPEND_COMPAT_EXP(sudo_reallocarray)
+])
dnl
dnl If libc supports _FORTIFY_SOURCE check functions, use it.
dnl