diff options
author | Marcin Mielniczuk <marmistrz.dev@gmail.com> | 2017-07-21 21:55:47 +0200 |
---|---|---|
committer | Marcin Mielniczuk <marmistrz.dev@gmail.com> | 2017-07-21 21:55:47 +0200 |
commit | 37b4e73a1035940a228bc7b3241eb516cf362125 (patch) | |
tree | 9c7ca6c595b7271e2d2478c4e98fa796528c1d87 | |
parent | 1535ee87036f7d20ecec94dfc43fb9f633be78d7 (diff) | |
download | rust-libc-37b4e73a1035940a228bc7b3241eb516cf362125.tar.gz |
include sys/regs.h only on x86 and x86_64
-rw-r--r-- | libc-test/build.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 46ccbb6d8c..0b47db6a7b 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -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 { |