From 37b4e73a1035940a228bc7b3241eb516cf362125 Mon Sep 17 00:00:00 2001 From: Marcin Mielniczuk Date: Fri, 21 Jul 2017 21:55:47 +0200 Subject: [PATCH] include sys/regs.h only on x86 and x86_64 --- libc-test/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 46ccbb6d..0b47db6a 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 {