Define intptr_t and uintptr_t via <machine/int_types.h>.

This commit is contained in:
kleink 2000-06-27 05:51:54 +00:00
parent bfc5613f54
commit 83b6632673
2 changed files with 14 additions and 13 deletions

View File

@ -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 <machine/ansi.h>
#include <machine/int_types.h>
#include <sys/cdefs.h>
#include <sys/featuretest.h>
#include <sys/types.h>
@ -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

View File

@ -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 <machine/ansi.h>
#include <machine/int_types.h>
#include <machine/types.h>
/*
@ -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_) */