blob: 0ea710d3a2cb0931ab88e1bf0a51424f8f9f3fde [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>
Ben Chanb7c57cd2019-03-28 12:39:34 -070012#include <linux/sockios.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070013#include <linux/termios.h>
14#include <stddef.h>
15#include <signal.h>
Josh Gao1fc33172018-01-17 15:27:34 -080016#include <sys/mman.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070017#include <sys/resource.h>
Mike Frysingerf3bd69a2018-01-18 15:50:47 -050018#include <sys/socket.h>
19#include <sys/stat.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070020#include <sys/types.h>
Mike Frysinger6f4e93d2018-05-23 05:05:35 -040021
22// These defines use C structures that are not defined in the same headers which
23// cause our CPP logic to fail w/undefined identifiers. Remove them to avoid
24// build errors on such broken systems.
25#undef BLKTRACESETUP
26#undef FS_IOC_FIEMAP