diff options
| author | Tom Lane | 2020-02-21 17:49:42 +0000 |
|---|---|---|
| committer | Tom Lane | 2020-02-21 19:30:47 +0000 |
| commit | 799d22461a932aace890d61a82186e0d64de0ee8 (patch) | |
| tree | 76c7b261ed71f78c40b944f4b1ea7e480532b670 /configure.in | |
| parent | 3f9c1697dca0b4964f1f5ba624d361d4e0e53051 (diff) | |
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
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/configure.in b/configure.in index 140909091a1..a70870184fd 100644 --- a/configure.in +++ b/configure.in @@ -1660,16 +1660,9 @@ PGAC_CHECK_BUILTIN_FUNC([__builtin_clz], [unsigned int x]) PGAC_CHECK_BUILTIN_FUNC([__builtin_ctz], [unsigned int x]) PGAC_CHECK_BUILTIN_FUNC([__builtin_popcount], [unsigned int x]) -AC_REPLACE_FUNCS(fseeko) -case $host_os in - # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos - # Mingw uses macros to access Win32 API calls - netbsd*|mingw*) - AC_DEFINE(HAVE_FSEEKO, 1, [Define to 1 because replacement version used.]) - ac_cv_func_fseeko=yes;; - *) - AC_FUNC_FSEEKO;; -esac +# 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. +AC_FUNC_FSEEKO # posix_fadvise() is a no-op on Solaris, so don't incur function overhead # by calling it, 2009-04-02 |
