Skip to contentSkip to conversation

syscalls/statx06.c: Fix compiler errors

PATCH New Xiao Yang 2 participants 2 messages Nov 21, 2018

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 syscalls/statx06.c: Fix compiler errors

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.

---
 testcases/kernel/syscalls/statx/statx06.c | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/syscalls/statx/statx06.c +1 -0
index dbf34a8..5240224 100644
@@ -33,6 +33,7 @@
  *
  */
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <sys/mount.h>
 #include <time.h>
Signature · 1 line
1.8.3.1