소스 검색

Work around broken m68k kernel headers... Grumble.

Eric Andersen 24 년 전
부모
커밋
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
 //#define __NR_iopl             110
 #ifdef L_iopl
 #ifdef L_iopl
 #include <sys/io.h>
 #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);
 		_syscall1(int, iopl, int, level);
 #	else
 #	else
 		int iopl(int level)
 		int iopl(int level)