瀏覽代碼

Yipe. This was still pulling in kernel headers.
-Erik

Eric Andersen 23 年之前
父節點
當前提交
cc848544ff
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      include/sys/mman.h

+ 4 - 2
include/sys/mman.h

@@ -2,8 +2,10 @@
 #define _SYS_MMAN_H
 
 #include <features.h>
-#include <sys/types.h>
-#include <linux/mman.h>
+#include <bits/types.h>
+#define __need_size_t
+#include <stddef.h>
+#include <bits/mman.h>
 
 #ifndef MAP_ANON
 #define MAP_ANON	MAP_ANONYMOUS	   /* idem */