[LTP] [PATCH] syscalls/statx06.c: Fix compiler errors on old distros
    Xiao Yang 
    yangx.jy@cn.fujitsu.com
       
    Wed Nov 21 04:05:32 CET 2018
    
    
  
Compilation fails on old distros due to undefined CLOCK_REALTIME_COARSE,
AT_FDCWD or MS_STRICTATIME.
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 testcases/kernel/syscalls/statx/statx06.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/testcases/kernel/syscalls/statx/statx06.c b/testcases/kernel/syscalls/statx/statx06.c
index 17fccc8..1ce7d48 100644
--- a/testcases/kernel/syscalls/statx/statx06.c
+++ b/testcases/kernel/syscalls/statx/statx06.c
@@ -36,6 +36,9 @@
 #include <stdio.h>
 #include "tst_test.h"
 #include "lapi/stat.h"
+#include "lapi/mount.h"
+#include "lapi/fcntl.h"
+#include "lapi/posix_clocks.h"
 #include "tst_safe_clocks.h"
 #include "tst_safe_macros.h"
 #include "tst_timer.h"
-- 
1.7.11.rc0
    
    
More information about the ltp
mailing list