提交 2555fe1b 编写于 作者: R Rich Felker

add some ugly legacy type names in sys/types.h (u_char etc.)

上级 691b20be
...@@ -59,6 +59,14 @@ extern "C" { ...@@ -59,6 +59,14 @@ extern "C" {
#ifdef _GNU_SOURCE #ifdef _GNU_SOURCE
typedef unsigned long caddr_t; typedef unsigned long caddr_t;
typedef unsigned char u_char;
typedef unsigned short u_short, ushort;
typedef unsigned u_int, uint;
typedef unsigned long u_long, ulong;
typedef long long quad_t;
typedef unsigned long long u_quad_t;
#include <endian.h>
#include <sys/select.h>
#include <sys/sysmacros.h> #include <sys/sysmacros.h>
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册