public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/statx06.c: Fix compiler errors
@ 2018-11-21  1:39 Xiao Yang
  2018-11-21  9:56 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Yang @ 2018-11-21  1:39 UTC (permalink / raw)
  To: ltp

struct statx and statx_timestamp are only defined in sys/stat.h when
_GNU_SOURCE is defined, so statx06.c should define _GNU_SOURCE as m4
struct check does.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 testcases/kernel/syscalls/statx/statx06.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/statx/statx06.c b/testcases/kernel/syscalls/statx/statx06.c
index dbf34a8..5240224 100644
--- a/testcases/kernel/syscalls/statx/statx06.c
+++ b/testcases/kernel/syscalls/statx/statx06.c
@@ -33,6 +33,7 @@
  *
  */
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <sys/mount.h>
 #include <time.h>
-- 
1.8.3.1




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

* [LTP] [PATCH] syscalls/statx06.c: Fix compiler errors
  2018-11-21  1:39 [LTP] [PATCH] syscalls/statx06.c: Fix compiler errors Xiao Yang
@ 2018-11-21  9:56 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2018-11-21  9:56 UTC (permalink / raw)
  To: ltp

Hi!
Pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

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

end of thread, other threads:[~2018-11-21  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-21  1:39 [LTP] [PATCH] syscalls/statx06.c: Fix compiler errors Xiao Yang
2018-11-21  9:56 ` Cyril Hrubis

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