Skip to content

Commit cb78432

Browse files
Disable PR_SET_VMA_ANON_NAME on musl
1 parent 888d101 commit cb78432

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

configure.ac

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

56075608
AC_CHECK_FUNCS([openpty], [],

0 commit comments

Comments
 (0)