diff --git a/include/unistd.h b/include/unistd.h index 81b12e4c3018..6c77eaf28d5c 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $NetBSD: unistd.h,v 1.84 2000/04/21 16:24:22 minoura Exp $ */ +/* $NetBSD: unistd.h,v 1.85 2000/06/27 05:51:54 kleink Exp $ */ /*- * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc. @@ -75,6 +75,7 @@ #define _UNISTD_H_ #include +#include #include #include #include @@ -215,9 +216,9 @@ pid_t getsid __P((pid_t)); #if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || \ (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ (_XOPEN_SOURCE - 0) >= 500 -#ifdef _BSD_INTPTR_T_ -typedef _BSD_INTPTR_T_ intptr_t; -#undef _BSD_INTPTR_T_ +#ifndef intptr_t +typedef __intptr_t intptr_t; +#define intptr_t intptr_t #endif #define F_ULOCK 0 diff --git a/sys/sys/inttypes.h b/sys/sys/inttypes.h index c7c246a8ce6e..50788ca30fe1 100644 --- a/sys/sys/inttypes.h +++ b/sys/sys/inttypes.h @@ -1,7 +1,7 @@ -/* $NetBSD: inttypes.h,v 1.2 1998/09/13 14:46:24 christos Exp $ */ +/* $NetBSD: inttypes.h,v 1.3 2000/06/27 05:51:55 kleink Exp $ */ /*- - * Copyright (c) 1998 The NetBSD Foundation, Inc. + * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation @@ -43,7 +43,7 @@ #ifndef _SYS_INTTYPES_H_ #define _SYS_INTTYPES_H_ -#include +#include #include /* @@ -56,14 +56,14 @@ typedef u_int16_t uint16_t; typedef u_int32_t uint32_t; typedef u_int64_t uint64_t; -#ifdef _BSD_INTPTR_T_ -typedef _BSD_INTPTR_T_ intptr_t; -#undef _BSD_INTPTR_T_ +#ifndef intptr_t +typedef __intptr_t intptr_t; +#define intptr_t intptr_t #endif -#ifdef _BSD_UINTPTR_T_ -typedef _BSD_UINTPTR_T_ uintptr_t; -#undef _BSD_UINTPTR_T_ +#ifndef uintptr_t +typedef __uintptr_t uintptr_t; +#define uintptr_t uintptr_t #endif #endif /* !defined(_SYS_INTTYPES_H_) */