summaryrefslogtreecommitdiff
path: root/net/irrtoolset-nox11/patches/patch-co
blob: 54aec92e5871d3458c2dd7f37155f076786d5b64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-co,v 1.2 2008/03/08 11:00:35 spz Exp $

--- ./src/gnug++/int.defs.h.orig	2007-02-09 22:30:25.000000000 +0100
+++ ./src/gnug++/int.defs.h
@@ -16,7 +16,13 @@ License along with this library; if not,
 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#if defined( HAVE_STDINT_H )
 #include <stdint.h>
+#elif defined( HAVE_INTTYPES_H )
+#include <inttypes.h>
+#else
+#include <sys/types.h>
+#endif
 
 #ifndef _intdefs_h
 #define _intdefs_h 1
@@ -55,11 +61,6 @@ Foundation, 675 Mass Ave, Cambridge, MA 
 
 #define HASHTABLE_TOO_CROWDED(COUNT, SIZE) ((SIZE) - ((SIZE) >> 3) <= (COUNT))
 
-// Allow portable address arithmetic
-#if __WORDSIZE == 64
-typedef uint64_t addr_t;
-#else
-typedef uint32_t addr_t;
-#endif
+typedef char* addr_t;
 
 #endif