easyseccomp_fix_includes.patch (1093B)
1 diff --git a/Makefile.am b/Makefile.am 2 index f9776ea..8330e8c 100644 3 --- a/Makefile.am 4 +++ b/Makefile.am 5 @@ -15,7 +15,7 @@ libeasyseccomp_a_LFLAGS = --header-file=$(abs_builddir)/src/libeasyseccomp_a-lex 6 libeasyseccomp_a_YFLAGS = -d -Wno-yacc 7 libeasyseccomp_a_CFLAGS = -I $(abs_srcdir)/src -I $(abs_builddir)/src 8 9 -src/libeasyseccomp_a-lexer.h: src/libeasyseccomp_a-parser.h 10 +src/libeasyseccomp_a-lexer.h: src/libeasyseccomp_a-parser.h src/libeasyseccomp_a-lexer.c 11 src/generator.c: src/libeasyseccomp_a-lexer.h 12 13 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh 14 diff --git a/src/sim/bpf.h b/src/sim/bpf.h 15 index 8b95b14..1dda1ce 100644 16 --- a/src/sim/bpf.h 17 +++ b/src/sim/bpf.h 18 @@ -40,6 +40,20 @@ 19 #ifndef _NET_BPF_H_ 20 #define _NET_BPF_H_ 21 22 +/* define u_int*_t types */ 23 +#define _GNU_SOURCE 1 24 +#include <sys/types.h> 25 + 26 +#ifndef __BEGIN_DECLS 27 +#ifdef __cplusplus 28 +#define __BEGIN_DECLS extern "C" { 29 +#define __END_DECLS } 30 +#else 31 +#define __BEGIN_DECLS 32 +#define __END_DECLS 33 +#endif 34 +#endif 35 + 36 /* BSD style release date */ 37 #define BPF_RELEASE 199606 38