Dan Willemsen | 2acbec5 | 2017-09-14 17:28:36 -0700 | [diff] [blame] | 1 | #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 Frysinger | 6f4e93d | 2018-05-23 05:05:35 -0400 | [diff] [blame] | 6 | #include <linux/fs.h> |
Luis Hector Chavez | 998146c | 2018-07-31 09:53:29 -0700 | [diff] [blame] | 7 | #include <linux/mman.h> |
Ben Chan | 4b5aae2 | 2019-03-27 16:18:13 -0700 | [diff] [blame] | 8 | #include <linux/net.h> |
Dan Willemsen | 2acbec5 | 2017-09-14 17:28:36 -0700 | [diff] [blame] | 9 | #include <linux/prctl.h> |
| 10 | #include <linux/sched.h> |
| 11 | #include <linux/serial.h> |
Ben Chan | b7c57cd | 2019-03-28 12:39:34 -0700 | [diff] [blame] | 12 | #include <linux/sockios.h> |
Dan Willemsen | 2acbec5 | 2017-09-14 17:28:36 -0700 | [diff] [blame] | 13 | #include <linux/termios.h> |
| 14 | #include <stddef.h> |
| 15 | #include <signal.h> |
Josh Gao | 1fc3317 | 2018-01-17 15:27:34 -0800 | [diff] [blame] | 16 | #include <sys/mman.h> |
Dan Willemsen | 2acbec5 | 2017-09-14 17:28:36 -0700 | [diff] [blame] | 17 | #include <sys/resource.h> |
Mike Frysinger | f3bd69a | 2018-01-18 15:50:47 -0500 | [diff] [blame] | 18 | #include <sys/socket.h> |
| 19 | #include <sys/stat.h> |
Dan Willemsen | 2acbec5 | 2017-09-14 17:28:36 -0700 | [diff] [blame] | 20 | #include <sys/types.h> |
Mike Frysinger | 6f4e93d | 2018-05-23 05:05:35 -0400 | [diff] [blame] | 21 | |
| 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 |