From 47cf4919fc834a917185ace26dfd1c2ab760676d Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 2 Apr 2013 04:38:23 +0200 Subject: [PATCH] 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. --- arch/arm/bits/alltypes.h.sh | 1 + arch/i386/bits/alltypes.h.sh | 1 + arch/microblaze/bits/alltypes.h.sh | 1 + arch/mips/bits/alltypes.h.sh | 1 + arch/powerpc/bits/alltypes.h.sh | 1 + arch/x86_64/bits/alltypes.h.sh | 1 + include/sys/types.h | 1 + include/unistd.h | 1 + 8 files changed, 8 insertions(+) diff --git a/arch/arm/bits/alltypes.h.sh b/arch/arm/bits/alltypes.h.sh index a531ee0f..abe782d9 100755 --- a/arch/arm/bits/alltypes.h.sh +++ b/arch/arm/bits/alltypes.h.sh @@ -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; }; diff --git a/arch/i386/bits/alltypes.h.sh b/arch/i386/bits/alltypes.h.sh index 13def835..579aa1af 100755 --- a/arch/i386/bits/alltypes.h.sh +++ b/arch/i386/bits/alltypes.h.sh @@ -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; }; diff --git a/arch/microblaze/bits/alltypes.h.sh b/arch/microblaze/bits/alltypes.h.sh index 2397c6cd..6ddd0823 100755 --- a/arch/microblaze/bits/alltypes.h.sh +++ b/arch/microblaze/bits/alltypes.h.sh @@ -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; }; diff --git a/arch/mips/bits/alltypes.h.sh b/arch/mips/bits/alltypes.h.sh index 2397c6cd..6ddd0823 100755 --- a/arch/mips/bits/alltypes.h.sh +++ b/arch/mips/bits/alltypes.h.sh @@ -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; }; diff --git a/arch/powerpc/bits/alltypes.h.sh b/arch/powerpc/bits/alltypes.h.sh index f3dac12a..417e2919 100755 --- a/arch/powerpc/bits/alltypes.h.sh +++ b/arch/powerpc/bits/alltypes.h.sh @@ -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; }; diff --git a/arch/x86_64/bits/alltypes.h.sh b/arch/x86_64/bits/alltypes.h.sh index bc9a3cc0..62e77ac9 100755 --- a/arch/x86_64/bits/alltypes.h.sh +++ b/arch/x86_64/bits/alltypes.h.sh @@ -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; }; diff --git a/include/sys/types.h b/include/sys/types.h index 7378b60b..6ead8b6e 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -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 diff --git a/include/unistd.h b/include/unistd.h index 07e49e97..b9dc06d5 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -24,6 +24,7 @@ extern "C" { #define __NEED_off_t #define __NEED_pid_t #define __NEED_intptr_t +#define __NEED_useconds_t #include -- 2.25.1