瀏覽代碼

include sys/sysmacros.h from sys/types.h when _GNU_SOURCE is defined

Rich Felker 14 年之前
父節點
當前提交
f552c792c7
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      include/sys/types.h

+ 1 - 0
include/sys/types.h

@@ -60,6 +60,7 @@ extern "C" {
 
 #ifdef _GNU_SOURCE
 typedef unsigned long caddr_t;
+#include <sys/sysmacros.h>
 #endif
 
 #ifdef __cplusplus