blob: 2b10d19c02f9d8b85ed4d6429690f8b85026f01f [file] [log] [blame]
Dan Willemsen2acbec52017-09-14 17:28:36 -07001#if defined(__i386__) || defined(__x86_64__)
2#include <asm/prctl.h>
3#endif // __i386__ || __x86_64__
4#include <errno.h>
5#include <fcntl.h>
Mike Frysinger6f4e93d2018-05-23 05:05:35 -04006#include <linux/fs.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -07007#include <linux/prctl.h>
8#include <linux/sched.h>
9#include <linux/serial.h>
10#include <linux/termios.h>
11#include <stddef.h>
12#include <signal.h>
Josh Gao1fc33172018-01-17 15:27:34 -080013#include <sys/mman.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070014#include <sys/resource.h>
Mike Frysingerf3bd69a2018-01-18 15:50:47 -050015#include <sys/socket.h>
16#include <sys/stat.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070017#include <sys/types.h>
Mike Frysinger6f4e93d2018-05-23 05:05:35 -040018
19// These defines use C structures that are not defined in the same headers which
20// cause our CPP logic to fail w/undefined identifiers. Remove them to avoid
21// build errors on such broken systems.
22#undef BLKTRACESETUP
23#undef FS_IOC_FIEMAP