include sys/regs.h only on x86 and x86_64

This commit is contained in:
Marcin Mielniczuk 2017-07-21 21:55:47 +02:00
parent 1535ee8703
commit 37b4e73a10
1 changed files with 3 additions and 1 deletions

View File

@ -181,13 +181,15 @@ fn main() {
cfg.header("sys/msg.h");
cfg.header("sys/shm.h");
cfg.header("sys/user.h");
cfg.header("sys/reg.h");
cfg.header("sys/fsuid.h");
cfg.header("shadow.h");
cfg.header("linux/input.h");
if x86_64 {
cfg.header("sys/io.h");
}
if x86 || x86_64 {
cfg.header("sys/reg.h");
}
}
if linux || android {