Skip to content

Commit 14f96a8

Browse files
gh-143632: Disable PR_SET_VMA_ANON_NAME on musl libc (gh-143730)
1 parent 2b33b52 commit 14f96a8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

configure

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5595,14 +5595,15 @@ AC_CHECK_DECLS([UT_NAMESIZE],
55955595
[Define if you have the 'HAVE_UT_NAMESIZE' constant.])],
55965596
[],
55975597
[@%:@include <utmp.h>])
5598-
5598+
# musl libc redefines struct prctl_mm_map and conflicts with linux/prctl.h
5599+
AS_IF([test "$ac_cv_libc" != musl], [
55995600
AC_CHECK_DECLS([PR_SET_VMA_ANON_NAME],
56005601
[AC_DEFINE([HAVE_PR_SET_VMA_ANON_NAME], [1],
56015602
[Define if you have the 'PR_SET_VMA_ANON_NAME' constant.])],
56025603
[],
56035604
[@%:@include <linux/prctl.h>
56045605
@%:@include <sys/prctl.h>])
5605-
5606+
])
56065607
# check for openpty, login_tty, and forkpty
56075608

56085609
AC_CHECK_FUNCS([openpty], [],

0 commit comments

Comments
 (0)