瀏覽代碼

undefine stupid defines from the kernel

Mike Frysinger 19 年之前
父節點
當前提交
d29b097fa0
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      libc/sysdeps/linux/m68k/bits/syscalls.h

+ 7 - 0
libc/sysdeps/linux/m68k/bits/syscalls.h

@@ -11,6 +11,13 @@
  * programs.  */
 #include <bits/sysnum.h>
 
+/* m68k headers does stupid stuff with __NR_iopl / __NR_vm86:
+ * #define __NR_iopl   not supported
+ * #define __NR_vm86   not supported
+ */
+#undef __NR_iopl
+#undef __NR_vm86
+
 #ifndef __ASSEMBLER__
 
 /* Linux takes system call arguments in registers: