From: WanBingjiang <614699596@qq.com> Date: Wed, 1 Jul 2026 02:13:48 +0000 (+0800) Subject: tests: build test_child_create only with prctl.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca6145fbea1d8c2e280fd30aad6d22f2df29d019;p=thirdparty%2Futil-linux.git tests: build test_child_create only with prctl.h Aligned to Meson fix: 1dd0fd9 Signed-off-by: WanBingjiang --- diff --git a/configure.ac b/configure.ac index 9dd5721a9..4b5f1be0a 100644 --- a/configure.ac +++ b/configure.ac @@ -701,6 +701,7 @@ AC_CHECK_FUNCS([updwtmpx updwtmpx], [have_gnu_utmpx=yes], [have_gnu_utmpx=no]) AC_CHECK_FUNCS([statx], [have_statx=yes], [have_statx=no]) AM_CONDITIONAL([HAVE_OPENAT], [test "x$have_openat" = xyes]) +AM_CONDITIONAL([HAVE_SYS_PRCTL_H], [test "x$ac_cv_header_sys_prctl_h" = xyes]) AM_CONDITIONAL([HAVE_LINUX_LANDLOCK_H], [test "x$ac_cv_header_linux_landlock_h" = xyes]) have_setns_syscall="yes" diff --git a/tests/helpers/Makemodule.am b/tests/helpers/Makemodule.am index e12784968..5b0f0b706 100644 --- a/tests/helpers/Makemodule.am +++ b/tests/helpers/Makemodule.am @@ -70,6 +70,8 @@ check_PROGRAMS += test_threads_create test_threads_create_SOURCES = tests/helpers/test_threads_create.c test_threads_create_LDADD = $(LDADD) libcommon.la $(PTHREAD_LIBS) +if HAVE_SYS_PRCTL_H check_PROGRAMS += test_child_create test_child_create_SOURCES = tests/helpers/test_child_create.c test_child_create_LDADD = $(LDADD) libcommon.la +endif