mirror of
https://github.com/postgres/postgres.git
synced 2025-10-16 17:07:43 +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:
@@ -3872,15 +3872,6 @@ checkSeek(FILE *fp)
|
||||
{
|
||||
pgoff_t tpos;
|
||||
|
||||
/*
|
||||
* If pgoff_t is wider than long, we must have "real" fseeko and not an
|
||||
* emulation using fseek. Otherwise report no seek capability.
|
||||
*/
|
||||
#ifndef HAVE_FSEEKO
|
||||
if (sizeof(pgoff_t) > sizeof(long))
|
||||
return false;
|
||||
#endif
|
||||
|
||||
/* Check that ftello works on this file */
|
||||
tpos = ftello(fp);
|
||||
if (tpos < 0)
|
||||
|
Reference in New Issue
Block a user