blob: 1248254c9dfe78b66f4431797bf5857dfd31677c [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>
Trent Beginfc4e0a42019-10-30 15:15:45 -06006#include <linux/fd.h>
Mike Frysinger6f4e93d2018-05-23 05:05:35 -04007#include <linux/fs.h>
Trent Beginfc4e0a42019-10-30 15:15:45 -06008#include <linux/loop.h>
Luis Hector Chavez998146c2018-07-31 09:53:29 -07009#include <linux/mman.h>
Ben Chan4b5aae22019-03-27 16:18:13 -070010#include <linux/net.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070011#include <linux/prctl.h>
12#include <linux/sched.h>
13#include <linux/serial.h>
Ben Chanb7c57cd2019-03-28 12:39:34 -070014#include <linux/sockios.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070015#include <linux/termios.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070016#include <signal.h>
Trent Beginfc4e0a42019-10-30 15:15:45 -060017#include <stddef.h>
Josh Gao1fc33172018-01-17 15:27:34 -080018#include <sys/mman.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070019#include <sys/resource.h>
Mike Frysingerf3bd69a2018-01-18 15:50:47 -050020#include <sys/socket.h>
21#include <sys/stat.h>
Dan Willemsen2acbec52017-09-14 17:28:36 -070022#include <sys/types.h>
Mike Frysinger6f4e93d2018-05-23 05:05:35 -040023
Luis Hector Chavezf6f26252019-12-13 08:04:50 -080024#include "arch.h"
25
Mike Frysinger6f4e93d2018-05-23 05:05:35 -040026// These defines use C structures that are not defined in the same headers which
27// cause our CPP logic to fail w/undefined identifiers. Remove them to avoid
28// build errors on such broken systems.
29#undef BLKTRACESETUP
30#undef FS_IOC_FIEMAP