Skip to content

Commit 5a54bcb

Browse files
committed
Disable ptsname_r on x86_64-apple-darwin for Python 3.13+
1 parent 77142ea commit 5a54bcb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cpython-unix/build-cpython.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,12 @@ if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
444444
export MACOSX_DEPLOYMENT_TARGET="${APPLE_MIN_DEPLOYMENT_TARGET}"
445445
fi
446446

447+
# ptsrname_r is only available in SDK 13.4+
448+
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
449+
echo "Disabling ptsname_r due to macOS SDK 13.4+ requirement."
450+
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} ac_cv_func_ptsname_r=no"
451+
fi
452+
447453
# We use ndbm on macOS and BerkeleyDB elsewhere.
448454
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
449455
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-dbmliborder=ndbm"

0 commit comments

Comments
 (0)