summaryrefslogtreecommitdiff
path: root/tests/lib/libc/sys
diff options
context:
space:
mode:
authorkre <kre@NetBSD.org>2022-08-01 15:48:39 +0000
committerkre <kre@NetBSD.org>2022-08-01 15:48:39 +0000
commitac44c67317ab7959afd923ac0c97f4f6c39c1ab4 (patch)
tree6fe139f33b70d9fa1606e69fd8f5f70c3bdc4c5d /tests/lib/libc/sys
parent4de9975bd297416dbe9b19b4e7bd6d45621be25e (diff)
Provide _GNU_SOURCE for t_clone now that is required to make clone()
visible.
Diffstat (limited to 'tests/lib/libc/sys')
-rw-r--r--tests/lib/libc/sys/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/libc/sys/Makefile b/tests/lib/libc/sys/Makefile
index 56ad83a1a01..e423f66c730 100644
--- a/tests/lib/libc/sys/Makefile
+++ b/tests/lib/libc/sys/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2022/04/06 10:02:55 gson Exp $
+# $NetBSD: Makefile,v 1.72 2022/08/01 15:48:39 kre Exp $
MKMAN= no
@@ -120,6 +120,7 @@ CPPFLAGS.t_futex_robust.c += -I${.CURDIR}/../../../../lib
CPPFLAGS.t_timerfd.c += -I${.CURDIR}/../gen
+CPPFLAGE.t_clone.c += -D_NETBSD_SOURCE -D_GNU_SOURCE
CPPFLAGS.t_lwp_create.c += -D_KERNTYPES
CPPFLAGS.t_ptrace_sigchld.c += -D__TEST_FENV
CPPFLAGS.t_ptrace_wait.c += -D_KERNTYPES -D__TEST_FENV