mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Assume that we have functional, 64-bit fseeko()/ftello().
Windows has this, and so do all other live platforms according to the buildfarm, so remove the configure probe and src/port/ substitution. Keep the probe that detects whether _LARGEFILE_SOURCE has to be defined to get that, though ... that seems to be still relevant in some places. This is part of a series of commits to get rid of no-longer-relevant configure checks and dead src/port/ code. I'm committing them separately to make it easier to back out individual changes if they prove less portable than I expect. Discussion: https://postgr.es/m/15379.1582221614@sss.pgh.pa.us
This commit is contained in:
30
configure
vendored
30
configure
vendored
@ -15169,30 +15169,9 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
|
||||
if test "x$ac_cv_func_fseeko" = xyes; then :
|
||||
$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
|
||||
|
||||
else
|
||||
case " $LIBOBJS " in
|
||||
*" fseeko.$ac_objext "* ) ;;
|
||||
*) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
|
||||
|
||||
case $host_os in
|
||||
# NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
|
||||
# Mingw uses macros to access Win32 API calls
|
||||
netbsd*|mingw*)
|
||||
|
||||
$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
|
||||
|
||||
ac_cv_func_fseeko=yes;;
|
||||
*)
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
|
||||
# We require 64-bit fseeko() to be available, but run this check anyway
|
||||
# in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
|
||||
$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
|
||||
if ${ac_cv_sys_largefile_source+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
@ -15259,8 +15238,7 @@ if test $ac_cv_sys_largefile_source != unknown; then
|
||||
$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
# posix_fadvise() is a no-op on Solaris, so don't incur function overhead
|
||||
# by calling it, 2009-04-02
|
||||
|
Reference in New Issue
Block a user