[LTP] [PATCH 2/3] tst_device.h: Use lapi/syscalls.h instead of <sys/syscall.h>
Petr Vorel
pvorel@suse.cz
Fri Jan 17 12:37:14 CET 2020
As a fallback for old distros which does not define __NR_syncfs
(the dependency is in the library itself).
This was needed on SLES 11 (kernel 2.6.32).
Fixes: 74aeb88c9 ("tst_device: use raw syscall in the tst_device.h")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
include/tst_device.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/tst_device.h b/include/tst_device.h
index 3db5275c9..13d92ee54 100644
--- a/include/tst_device.h
+++ b/include/tst_device.h
@@ -19,7 +19,7 @@
#define TST_DEVICE_H__
#include <unistd.h>
-#include <sys/syscall.h>
+#include "lapi/syscalls.h"
struct tst_device {
const char *dev;
--
2.24.1
More information about the ltp
mailing list