diff --git a/configure.ac b/configure.ac index 043ec957f40894..935a39b27b68a9 100644 --- a/configure.ac +++ b/configure.ac @@ -5594,14 +5594,15 @@ AC_CHECK_DECLS([UT_NAMESIZE], [Define if you have the 'HAVE_UT_NAMESIZE' constant.])], [], [@%:@include ]) - +# 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 @%:@include ]) - +]) # check for openpty, login_tty, and forkpty AC_CHECK_FUNCS([openpty], [],