From: Dmitry V. Levin Date: Fri, 4 Dec 2015 14:37:02 +0000 (+0000) Subject: Add a wrapper around X-Git-Tag: v4.11~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c31481fc68f0f9bc67bf54b302da860e2ec89ec6;p=strace Add a wrapper around * linux/asm_stat.h: New file. * Makefile.am (strace_SOURCES): Add it. * file.c: Use it. --- diff --git a/Makefile.am b/Makefile.am index 624807bd..efee8532 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 78d86f2d..7f0b1b4f 100644 --- a/file.c +++ b/file.c @@ -47,7 +47,7 @@ #define off_t __kernel_off_t #define loff_t __kernel_loff_t -#include +#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 index 00000000..c941f22d --- /dev/null +++ b/linux/asm_stat.h @@ -0,0 +1,2 @@ +#include "kernel_types.h" +#include