From c31481fc68f0f9bc67bf54b302da860e2ec89ec6 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 4 Dec 2015 14:37:02 +0000 Subject: [PATCH] Add a wrapper around * linux/asm_stat.h: New file. * Makefile.am (strace_SOURCES): Add it. * file.c: Use it. --- Makefile.am | 1 + file.c | 2 +- linux/asm_stat.h | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 linux/asm_stat.h 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 -- 2.50.1