Skip to content

Commit ed011d9

Browse files
committed
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.
1 parent 71812a9 commit ed011d9

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

configure

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11092,6 +11092,11 @@ rm -rf conftest*
1109211092

1109311093
fi
1109411094

11095+
# Autoconf 2.69's AC_SYS_LARGEFILE believes it's a good idea to #define
11096+
# _DARWIN_USE_64_BIT_INODE, but it isn't: on OS X 10.5 that activates a
11097+
# bug that causes readdir() to sometimes return EINVAL. On later OS X
11098+
# versions where the feature actually works, it's on by default anyway.
11099+
1109511100
fi
1109611101

1109711102
# Check for largefile support (must be after AC_SYS_LARGEFILE)

configure.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,11 @@ esac
12051205
# defines can affect what is generated for that.
12061206
if test "$PORTNAME" != "win32"; then
12071207
AC_SYS_LARGEFILE
1208+
# Autoconf 2.69's AC_SYS_LARGEFILE believes it's a good idea to #define
1209+
# _DARWIN_USE_64_BIT_INODE, but it isn't: on OS X 10.5 that activates a
1210+
# bug that causes readdir() to sometimes return EINVAL. On later OS X
1211+
# versions where the feature actually works, it's on by default anyway.
1212+
AH_VERBATIM([_DARWIN_USE_64_BIT_INODE],[])
12081213
fi
12091214

12101215
# Check for largefile support (must be after AC_SYS_LARGEFILE)

src/include/pg_config.h.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,10 +833,7 @@
833833
XLOG_BLCKSZ). Changing XLOG_SEG_SIZE requires an initdb. */
834834
#undef XLOG_SEG_SIZE
835835

836-
/* Enable large inode numbers on Mac OS X 10.5. */
837-
#ifndef _DARWIN_USE_64_BIT_INODE
838-
# define _DARWIN_USE_64_BIT_INODE 1
839-
#endif
836+
840837

841838
/* Number of bits in a file offset, on hosts where this is settable. */
842839
#undef _FILE_OFFSET_BITS

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy