diff options
-rw-r--r-- | sys/alpha/include/ansi.h | 7 | ||||
-rw-r--r-- | sys/arm/include/ansi.h | 1 | ||||
-rw-r--r-- | sys/ia64/include/ansi.h | 2 | ||||
-rw-r--r-- | sys/powerpc/include/ansi.h | 1 |
4 files changed, 5 insertions, 6 deletions
diff --git a/sys/alpha/include/ansi.h b/sys/alpha/include/ansi.h index 1c60857..a42b1ca 100644 --- a/sys/alpha/include/ansi.h +++ b/sys/alpha/include/ansi.h @@ -53,16 +53,19 @@ #define _BSD_PTRDIFF_T_ long /* ptr1 - ptr2 */ #define _BSD_SIZE_T_ unsigned long /* sizeof() */ #define _BSD_SSIZE_T_ long /* byte count or error */ -#define _BSD_SUSECONDS_T_ int /* suseconds_t */ #define _BSD_TIME_T_ int /* time() */ #define _BSD_TIMER_T_ int /* timer_t */ -#define _BSD_USECONDS_T_ unsigned int /* useconds_t */ + +#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC_MINOR__ > 95) +#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */ +#else typedef struct { char *__base; int __offset; int __pad; } __va_list; #define _BSD_VA_LIST_ __va_list /* va_list */ +#endif /*__GNUC__*/ /* * Types which are fundamental to the implementation and must be used diff --git a/sys/arm/include/ansi.h b/sys/arm/include/ansi.h index 22e4379..b4a26a0 100644 --- a/sys/arm/include/ansi.h +++ b/sys/arm/include/ansi.h @@ -51,7 +51,6 @@ #define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */ #define _BSD_SIZE_T_ unsigned int /* sizeof() */ #define _BSD_SSIZE_T_ long /* byte count or error */ -#define _BSD_SUSECONDS_T_ int /* suseconds_t */ #define _BSD_TIME_T_ long /* time() */ #define _BSD_TIMER_T_ int /* timer_t */ diff --git a/sys/ia64/include/ansi.h b/sys/ia64/include/ansi.h index c4e1156..36797e4 100644 --- a/sys/ia64/include/ansi.h +++ b/sys/ia64/include/ansi.h @@ -56,8 +56,6 @@ #define _BSD_VA_LIST_ __builtin_va_list /* va_list */ #define _BSD_CLOCKID_T_ int /* clockid_t */ #define _BSD_TIMER_T_ int /* timer_t */ -#define _BSD_SUSECONDS_T_ int /* suseconds_t */ -#define _BSD_USECONDS_T_ unsigned int /* useconds_t */ /* * Types which are fundamental to the implementation and must be used diff --git a/sys/powerpc/include/ansi.h b/sys/powerpc/include/ansi.h index 286233f..ff43b39 100644 --- a/sys/powerpc/include/ansi.h +++ b/sys/powerpc/include/ansi.h @@ -51,7 +51,6 @@ #define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */ #define _BSD_SIZE_T_ unsigned int /* sizeof() */ #define _BSD_SSIZE_T_ long /* byte count or error */ -#define _BSD_SUSECONDS_T_ int /* suseconds_t */ #define _BSD_TIME_T_ long /* time() */ #define _BSD_TIMER_T_ int /* timer_t */ |