提交 47cf4919 编写于 作者: R rofl0r

re-add useconds_t

this type was removed back in 5243e5f1 ,
because it was removed from the XSI specs.
however some apps use it.
since it's in the POSIX reserved namespace, we can expose it
unconditionally.
上级 82aad3a3
......@@ -61,6 +61,7 @@ TYPEDEF double double_t;
TYPEDEF long time_t;
TYPEDEF int suseconds_t;
TYPEDEF unsigned useconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
......
......@@ -74,6 +74,7 @@ TYPEDEF long double double_t;
TYPEDEF long time_t;
TYPEDEF int suseconds_t;
TYPEDEF unsigned useconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
......
......@@ -61,6 +61,7 @@ TYPEDEF double double_t;
TYPEDEF long time_t;
TYPEDEF int suseconds_t;
TYPEDEF unsigned useconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
......
......@@ -61,6 +61,7 @@ TYPEDEF double double_t;
TYPEDEF long time_t;
TYPEDEF int suseconds_t;
TYPEDEF unsigned useconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
......
......@@ -61,6 +61,7 @@ TYPEDEF double double_t;
TYPEDEF long time_t;
TYPEDEF int suseconds_t;
TYPEDEF unsigned useconds_t;
STRUCT timeval { time_t tv_sec; int tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
......
......@@ -60,6 +60,7 @@ TYPEDEF double double_t;
TYPEDEF long time_t;
TYPEDEF long suseconds_t;
TYPEDEF unsigned useconds_t;
STRUCT timeval { time_t tv_sec; long tv_usec; };
STRUCT timespec { time_t tv_sec; long tv_nsec; };
......
......@@ -52,6 +52,7 @@ extern "C" {
#define __NEED_pthread_spinlock_t
#define __NEED_pthread_key_t
#define __NEED_pthread_once_t
#define __NEED_useconds_t
#include <bits/alltypes.h>
......
......@@ -24,6 +24,7 @@ extern "C" {
#define __NEED_off_t
#define __NEED_pid_t
#define __NEED_intptr_t
#define __NEED_useconds_t
#include <bits/alltypes.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册