浏览代码

Work around broken m68k kernel headers... Grumble.

Eric Andersen 23 年之前
父节点
当前提交
c8cb3a1c22
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      libc/sysdeps/linux/common/syscalls.c

+ 2 - 1
libc/sysdeps/linux/common/syscalls.c

@@ -868,7 +868,8 @@ int fstat(int filedes, struct libc_stat *buf)
 //#define __NR_iopl             110
 #ifdef L_iopl
 #include <sys/io.h>
-#	if defined __UCLIBC_HAS_MMU__ && defined __NR_iopl
+/* Tuns out the m68k unistd.h kernel header is broken */
+#	if defined __UCLIBC_HAS_MMU__ && defined __NR_iopl && ! defined(__mc68000__)
 		_syscall1(int, iopl, int, level);
 #	else
 		int iopl(int level)