]> granicus.if.org Git - strace/commitdiff
Add a wrapper around <asm/stat.h>
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 4 Dec 2015 14:37:02 +0000 (14:37 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 4 Dec 2015 15:03:12 +0000 (15:03 +0000)
* linux/asm_stat.h: New file.
* Makefile.am (strace_SOURCES): Add it.
* file.c: Use it.

Makefile.am
file.c
linux/asm_stat.h [new file with mode: 0644]

index 624807bdc92fdab3514bc0f5782a33f5ac5fdcb9..efee8532009245310f61490f7bb437706ae1eaa7 100644 (file)
@@ -91,6 +91,7 @@ strace_SOURCES =      \
        keyctl.c        \
        ldt.c           \
        link.c          \
+       linux/asm_stat.h \
        lookup_dcookie.c \
        loop.c          \
        lseek.c         \
diff --git a/file.c b/file.c
index 78d86f2d8913ade225aec8ca8a32abd7e7812d0a..7f0b1b4f06e0c47a804b31e19b78923cec3ce423 100644 (file)
--- a/file.c
+++ b/file.c
@@ -47,7 +47,7 @@
 #define off_t __kernel_off_t
 #define loff_t __kernel_loff_t
 
-#include <asm/stat.h>
+#include "asm_stat.h"
 
 #undef dev_t
 #undef ino_t
diff --git a/linux/asm_stat.h b/linux/asm_stat.h
new file mode 100644 (file)
index 0000000..c941f22
--- /dev/null
@@ -0,0 +1,2 @@
+#include "kernel_types.h"
+#include <asm/stat.h>