Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include On ELF systems, make intptr_t and uintp...



details:   https://anonhg.NetBSD.org/src/rev/cf35fee8e594
branches:  trunk
changeset: 516130:cf35fee8e594
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Tue Oct 16 20:40:45 2001 +0000

description:
On ELF systems, make intptr_t and uintptr_t long, because Matt says so.
This makes regress/lib/libc/int_fmtio compile.

diffstat:

 sys/arch/arm/include/int_types.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 493e5db1d0ee -r cf35fee8e594 sys/arch/arm/include/int_types.h
--- a/sys/arch/arm/include/int_types.h  Tue Oct 16 20:09:59 2001 +0000
+++ b/sys/arch/arm/include/int_types.h  Tue Oct 16 20:40:45 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_types.h,v 1.3 2001/04/28 15:41:31 kleink Exp $     */
+/*     $NetBSD: int_types.h,v 1.4 2001/10/16 20:40:45 bjh21 Exp $      */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -64,7 +64,12 @@
 
 /* 7.18.1.4 Integer types capable of holding object pointers */
 
+#ifdef __ELF__
+typedef long int              __intptr_t;
+typedef unsigned long int     __uintptr_t;
+#else
 typedef        int                    __intptr_t;
 typedef        unsigned int          __uintptr_t;
+#endif
 
 #endif /* !_ARM32_INT_TYPES_H_ */



Home | Main Index | Thread Index | Old Index