blob: 7d9f9151855c63a04e1225cf0f84284a478a627b [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>
Luis Hector Chavez998146c2018-07-31 09:53:29 -07007#include <linux/mman.h>
Ben Chan4b5aae22019-03-27 16:18:13 -07008#include <linux/net.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -07009#include <linux/prctl.h>
10#include <linux/sched.h>
11#include <linux/serial.h>
12#include <linux/termios.h>
13#include <stddef.h>
14#include <signal.h>
Josh Gao1fc33172018-01-17 15:27:34 -080015#include <sys/mman.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070016#include <sys/resource.h>
Mike Frysingerf3bd69a2018-01-18 15:50:47 -050017#include <sys/socket.h>
18#include <sys/stat.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070019#include <sys/types.h>
Mike Frysinger6f4e93d2018-05-23 05:05:35 -040020
21// These defines use C structures that are not defined in the same headers which
22// cause our CPP logic to fail w/undefined identifiers. Remove them to avoid
23// build errors on such broken systems.
24#undef BLKTRACESETUP
25#undef FS_IOC_FIEMAP