[LTP] [PATCH] posix/conformance/interfaces/sem_timedwait/2-1: add _GNU_SOURCE define
Ma Xinjian
maxj.fnst@fujitsu.com
Tue Sep 10 11:47:55 CEST 2024
To get rid of error "‘MAP_ANONYMOUS’ undeclared (first use in this function)"
on some systems (Fedora 37, etc).
Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
.../conformance/interfaces/sem_timedwait/2-1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/2-1.c
index 2eca8dff6..4ccef7261 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/2-1.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/2-1.c
@@ -11,6 +11,7 @@
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
--
2.42.0
More information about the ltp
mailing list