summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--defines.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7dd5e869c..d36fbc079 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@
6 Fournier <marc.fournier@acadiau.ca> 6 Fournier <marc.fournier@acadiau.ca>
7 - Fix occasional crash on LinuxPPC. Patch from Franz Sirl 7 - Fix occasional crash on LinuxPPC. Patch from Franz Sirl
8 <Franz.Sirl-kernel@lauterbach.com> 8 <Franz.Sirl-kernel@lauterbach.com>
9 - Prevent typedefs from being compiled more than once. Report from
10 Marc G. Fournier <marc.fournier@acadiau.ca>
9 11
1019991230 1219991230
11 - OpenBSD CVS updates: 13 - OpenBSD CVS updates:
diff --git a/defines.h b/defines.h
index 10f72f478..fdd37bb88 100644
--- a/defines.h
+++ b/defines.h
@@ -61,6 +61,7 @@ typedef long int int64_t;
61# else 61# else
62# if (SIZEOF_LONG_LONG_INT == 8) 62# if (SIZEOF_LONG_LONG_INT == 8)
63typedef long long int int64_t; 63typedef long long int int64_t;
64# define HAVE_INTXX_T
64# else 65# else
65# error "64 bit int type not found." 66# error "64 bit int type not found."
66# endif 67# endif
@@ -89,6 +90,7 @@ typedef unsigned long int u_int64_t;
89# else 90# else
90# if (SIZEOF_LONG_LONG_INT == 8) 91# if (SIZEOF_LONG_LONG_INT == 8)
91typedef unsigned long long int u_int64_t; 92typedef unsigned long long int u_int64_t;
93# define HAVE_U_INTXX_T
92# else 94# else
93# error "64 bit int type not found." 95# error "64 bit int type not found."
94# endif 96# endif
@@ -100,14 +102,17 @@ typedef unsigned long long int u_int64_t;
100/* being defined by the above */ 102/* being defined by the above */
101#ifndef HAVE_QUAD_T 103#ifndef HAVE_QUAD_T
102typedef int64_t quad_t; 104typedef int64_t quad_t;
105# define HAVE_QUAD_T
103#endif 106#endif
104 107
105#ifndef HAVE_SOCKLEN_T 108#ifndef HAVE_SOCKLEN_T
106typedef unsigned int socklen_t; 109typedef unsigned int socklen_t;
110# define HAVE_SOCKLEN_T
107#endif /* HAVE_SOCKLEN_T */ 111#endif /* HAVE_SOCKLEN_T */
108 112
109#ifndef HAVE_SIZE_T 113#ifndef HAVE_SIZE_T
110typedef unsigned int size_t; 114typedef unsigned int size_t;
115# define HAVE_SIZE_T
111#endif /* HAVE_SIZE_T */ 116#endif /* HAVE_SIZE_T */
112 117
113/* Paths */ 118/* Paths */