public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] posix/conformance/interfaces/sem_timedwait/2-1: add _GNU_SOURCE define
@ 2024-09-10  9:47 Ma Xinjian via ltp
  2024-09-10 10:11 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Ma Xinjian via ltp @ 2024-09-10  9:47 UTC (permalink / raw)
  To: ltp

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-09-19  3:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10  9:47 [LTP] [PATCH] posix/conformance/interfaces/sem_timedwait/2-1: add _GNU_SOURCE define Ma Xinjian via ltp
2024-09-10 10:11 ` Cyril Hrubis
2024-09-13  4:07   ` Xinjian Ma (Fujitsu) via ltp
2024-09-17 14:16     ` Cyril Hrubis
2024-09-19  3:38       ` Xinjian Ma (Fujitsu) via ltp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox