Check for presence of fseeko() regardless of utmp type.

This commit is contained in:
Todd C. Miller
2020-01-28 13:00:54 -07:00
parent 604945f93e
commit 0fcb647160
2 changed files with 4 additions and 13 deletions

14
configure vendored
View File

@@ -2910,6 +2910,7 @@ as_fn_append ac_func_list " pwrite"
as_fn_append ac_func_list " faccessat"
as_fn_append ac_func_list " wordexp"
as_fn_append ac_func_list " getauxval"
as_fn_append ac_func_list " fseeko"
as_fn_append ac_func_list " seteuid"
# Check that the precious variables saved in the cache have kept the same
# value.
@@ -19617,6 +19618,8 @@ done
case "$host_os" in
hpux*)
if test X"$ac_cv_func_pread" = X"yes"; then
@@ -20065,17 +20068,6 @@ if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
break
fi
done
for ac_func in fseeko
do :
ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
if test "x$ac_cv_func_fseeko" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_FSEEKO 1
_ACEOF
fi
done

View File

@@ -2564,7 +2564,7 @@ dnl
dnl Function checks
dnl
AC_FUNC_GETGROUPS
AC_CHECK_FUNCS_ONCE([fexecve killpg nl_langinfo pread pwrite faccessat wordexp getauxval])
AC_CHECK_FUNCS_ONCE([fexecve killpg nl_langinfo pread pwrite faccessat wordexp getauxval fseeko])
case "$host_os" in
hpux*)
if test X"$ac_cv_func_pread" = X"yes"; then
@@ -2660,7 +2660,6 @@ utmp_style=LEGACY
AC_CHECK_FUNCS([getutsid getutxid getutid], [utmp_style=POSIX; break])
if test "$utmp_style" = "LEGACY"; then
AC_CHECK_FUNCS([getttyent ttyslot], [break])
AC_CHECK_FUNCS([fseeko])
fi
AC_CHECK_FUNCS([sysctl], [AC_CHECK_FUNCS([devname])