https://github.com/python/cpython/commit/14f96a8d8f2aadf1a71c0ba39e87baddd0adda40
commit: 14f96a8d8f2aadf1a71c0ba39e87baddd0adda40
branch: main
author: Priyanshu Singh <[email protected]>
committer: corona10 <[email protected]>
date: 2026-01-14T17:47:55Z
summary:
gh-143632: Disable PR_SET_VMA_ANON_NAME on musl libc (gh-143730)
files:
M configure
M configure.ac
diff --git a/configure b/configure
index 411bc1a23226e7..9d7fe6c52a418a 100755
--- a/configure
+++ b/configure
@@ -23966,6 +23966,9 @@ printf "%s\n" "#define HAVE_UT_NAMESIZE 1" >>confdefs.h
fi
+# musl libc redefines struct prctl_mm_map and conflicts with linux/prctl.h
+if test "$ac_cv_libc" != musl
+then :
ac_fn_check_decl "$LINENO" "PR_SET_VMA_ANON_NAME"
"ac_cv_have_decl_PR_SET_VMA_ANON_NAME" "#include <linux/prctl.h>
#include <sys/prctl.h>
@@ -23986,6 +23989,7 @@ printf "%s\n" "#define HAVE_PR_SET_VMA_ANON_NAME 1"
>>confdefs.h
fi
+fi
# check for openpty, login_tty, and forkpty
diff --git a/configure.ac b/configure.ac
index 9e63c8f6144c3d..8c421c2a2baaf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5595,14 +5595,15 @@ AC_CHECK_DECLS([UT_NAMESIZE],
[Define if you have the 'HAVE_UT_NAMESIZE'
constant.])],
[],
[@%:@include <utmp.h>])
-
+# musl libc redefines struct prctl_mm_map and conflicts with linux/prctl.h
+AS_IF([test "$ac_cv_libc" != musl], [
AC_CHECK_DECLS([PR_SET_VMA_ANON_NAME],
[AC_DEFINE([HAVE_PR_SET_VMA_ANON_NAME], [1],
[Define if you have the 'PR_SET_VMA_ANON_NAME'
constant.])],
[],
[@%:@include <linux/prctl.h>
@%:@include <sys/prctl.h>])
-
+])
# check for openpty, login_tty, and forkpty
AC_CHECK_FUNCS([openpty], [],
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]