diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-08-30 16:31:52 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-08-30 16:31:52 +0000 |
commit | 6bfd44faeed330c963602e2b06422af2c61921cf (patch) | |
tree | f27749a04e1529c8e0df3e3af9eb1bf73a41d32b /sys/arch/mips64/include | |
parent | ccef508628226cae051e8472a7797353b185ddd8 (diff) |
fix some types not agreeing with gcc 3
Diffstat (limited to 'sys/arch/mips64/include')
-rw-r--r-- | sys/arch/mips64/include/ansi.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/arch/mips64/include/ansi.h b/sys/arch/mips64/include/ansi.h index 6cc8903a530..05a6918221c 100644 --- a/sys/arch/mips64/include/ansi.h +++ b/sys/arch/mips64/include/ansi.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ansi.h,v 1.2 2004/08/10 20:28:13 deraadt Exp $ */ +/* $OpenBSD: ansi.h,v 1.3 2004/08/30 16:31:51 pefo Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -48,15 +48,21 @@ * #endif */ #define _BSD_CLOCK_T_ int /* clock() */ -#define _BSD_PTRDIFF_T_ long /* ptr1 - ptr2 */ #if defined(_LP64) +#define _BSD_PTRDIFF_T_ long /* ptr1 - ptr2 */ #define _BSD_SIZE_T_ unsigned long /* sizeof() */ +#define _BSD_SSIZE_T_ long /* byte count or error */ #else +#define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */ #define _BSD_SIZE_T_ unsigned int /* sizeof() */ +#define _BSD_SSIZE_T_ int /* byte count or error */ #endif -#define _BSD_SSIZE_T_ long /* byte count or error */ #define _BSD_TIME_T_ int /* time() */ +#if defined(__GNUC__) && __GNUC__ >= 3 +#define _BSD_VA_LIST_ __builtin_va_list +#else #define _BSD_VA_LIST_ char * /* va_list */ +#endif #define _BSD_CLOCKID_T_ int #define _BSD_TIMER_T_ int |