summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-30 20:25:02 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-30 20:25:02 +0000
commitbe03a186ed1fb95ba9f07ab81e698fdd2ca0e553 (patch)
tree56c4417d3cb62606fd3a4bfe3f9841211438de71 /libc/sysdeps/linux/common/syscalls.c
parentec2653144beb2be8b1e2e844d937a1a11c506af0 (diff)
It seems ARM 2.4.x kernels do not have iopl. Also add missing
bits/sem.h for ARM so everything now compiles and runs. -Erik
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 4244d9be8..f93760478 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -802,7 +802,7 @@ int fstat(int filedes, struct libc_stat *buf)
//#define __NR_olduname 109
-#ifdef __UCLIBC_HAS_MMU__
+#if defined __UCLIBC_HAS_MMU__ && defined __NR_iopl
//#define __NR_iopl 110
#ifdef L_iopl
#include <sys/io.h>