re-add useconds_t

this type was removed back in 5243e5f1606a9c6fcf01414e ,
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.
This commit is contained in:
rofl0r 2013-04-02 04:38:23 +02:00
parent 82aad3a317
commit 47cf4919fc
8 changed files with 8 additions and 0 deletions

View File

@ -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; };

View File

@ -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; };

View File

@ -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; };

View File

@ -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; };

View File

@ -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; };

View File

@ -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; };

View File

@ -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>

View File

@ -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>