summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--configure.in1
-rw-r--r--defines.h13
3 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b8fec34ca..6b89e130e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
120000118 120000118
2 - Fixed --with-pid-dir option 2 - Fixed --with-pid-dir option
3 - Makefile fix from Gary E. Miller <gem@rellim.com> 3 - Makefile fix from Gary E. Miller <gem@rellim.com>
4 - Compile fix for HPUX and Solaris from Andre Lucas
5 <andre.lucas@dial.pipex.com>
4 6
520000117 720000117
6 - Clean up bsd-bindresvport.c. Use arc4random() for picking initial 8 - Clean up bsd-bindresvport.c. Use arc4random() for picking initial
diff --git a/configure.in b/configure.in
index 5fdce1803..a5da0db93 100644
--- a/configure.in
+++ b/configure.in
@@ -157,6 +157,7 @@ AC_CHECK_FUNC(daemon,
157) 157)
158 158
159dnl Checks for data types 159dnl Checks for data types
160AC_CHECK_SIZEOF(char, 1)
160AC_CHECK_SIZEOF(short int, 2) 161AC_CHECK_SIZEOF(short int, 2)
161AC_CHECK_SIZEOF(int, 4) 162AC_CHECK_SIZEOF(int, 4)
162AC_CHECK_SIZEOF(long int, 4) 163AC_CHECK_SIZEOF(long int, 4)
diff --git a/defines.h b/defines.h
index 7cd9b80ee..1a9898b28 100644
--- a/defines.h
+++ b/defines.h
@@ -53,6 +53,11 @@ enum
53/* If sys/types.h does not supply intXX_t, supply them ourselves */ 53/* If sys/types.h does not supply intXX_t, supply them ourselves */
54/* (or die trying) */ 54/* (or die trying) */
55#ifndef HAVE_INTXX_T 55#ifndef HAVE_INTXX_T
56# if (SIZEOF_CHAR == 1)
57typedef char int8_t;
58# else
59# error "8 bit int type not found."
60# endif
56# if (SIZEOF_SHORT_INT == 2) 61# if (SIZEOF_SHORT_INT == 2)
57typedef short int int16_t; 62typedef short int int16_t;
58# else 63# else
@@ -78,11 +83,17 @@ typedef long long int int64_t;
78/* If sys/types.h does not supply u_intXX_t, supply them ourselves */ 83/* If sys/types.h does not supply u_intXX_t, supply them ourselves */
79#ifndef HAVE_U_INTXX_T 84#ifndef HAVE_U_INTXX_T
80# ifdef HAVE_UINTXX_T 85# ifdef HAVE_UINTXX_T
86typedef uint8_t u_int8_t;
81typedef uint16_t u_int16_t; 87typedef uint16_t u_int16_t;
82typedef uint32_t u_int32_t; 88typedef uint32_t u_int32_t;
83typedef uint64_t u_int64_t; 89typedef uint64_t u_int64_t;
84# define HAVE_U_INTXX_T 1 90# define HAVE_U_INTXX_T 1
85# else 91# else
92# if (SIZEOF_CHAR == 1)
93typedef unsigned char u_int8_t;
94# else
95# error "8 bit int type not found."
96# endif
86# if (SIZEOF_SHORT_INT == 2) 97# if (SIZEOF_SHORT_INT == 2)
87typedef unsigned short int u_int16_t; 98typedef unsigned short int u_int16_t;
88# else 99# else
@@ -220,7 +231,7 @@ typedef unsigned int size_t;
220#endif 231#endif
221 232
222#if !defined(__GNUC__) || (__GNUC__ < 2) 233#if !defined(__GNUC__) || (__GNUC__ < 2)
223# define __attribute__(x) 234# define __attribute__(x)
224#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ 235#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */
225 236
226#if defined(HAVE_SECURITY_PAM_APPL_H) && !defined(DISABLE_PAM) 237#if defined(HAVE_SECURITY_PAM_APPL_H) && !defined(DISABLE_PAM)