Skip to content

Commit 37b4e73

Browse files
committed
include sys/regs.h only on x86 and x86_64
1 parent 1535ee8 commit 37b4e73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libc-test/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,15 @@ fn main() {
181181
cfg.header("sys/msg.h");
182182
cfg.header("sys/shm.h");
183183
cfg.header("sys/user.h");
184-
cfg.header("sys/reg.h");
185184
cfg.header("sys/fsuid.h");
186185
cfg.header("shadow.h");
187186
cfg.header("linux/input.h");
188187
if x86_64 {
189188
cfg.header("sys/io.h");
190189
}
190+
if x86 || x86_64 {
191+
cfg.header("sys/reg.h");
192+
}
191193
}
192194

193195
if linux || android {

0 commit comments

Comments
 (0)