mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Undo autoconf 2.69's attempt to #define _DARWIN_USE_64_BIT_INODE.
Defining this symbol causes OS X 10.5 to use a buggy version of readdir(), which can sometimes fail with EINVAL if the previously-fetched directory entry has been deleted or renamed. In later OS X versions that bug has been repaired, but we still don't need the #define because it's on by default. So this is just an all-around bad idea, and we can do without it.
This commit is contained in:
@ -1205,6 +1205,11 @@ esac
|
||||
# defines can affect what is generated for that.
|
||||
if test "$PORTNAME" != "win32"; then
|
||||
AC_SYS_LARGEFILE
|
||||
# Autoconf 2.69's AC_SYS_LARGEFILE believes it's a good idea to #define
|
||||
# _DARWIN_USE_64_BIT_INODE, but it isn't: on OS X 10.5 that activates a
|
||||
# bug that causes readdir() to sometimes return EINVAL. On later OS X
|
||||
# versions where the feature actually works, it's on by default anyway.
|
||||
AH_VERBATIM([_DARWIN_USE_64_BIT_INODE],[])
|
||||
fi
|
||||
|
||||
# Check for largefile support (must be after AC_SYS_LARGEFILE)
|
||||
|
Reference in New Issue
Block a user