diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | acconfig.h | 1 | ||||
-rw-r--r-- | configure.in | 12 | ||||
-rw-r--r-- | defines.h | 4 |
4 files changed, 18 insertions, 0 deletions
@@ -8,6 +8,7 @@ | |||
8 | Nalin Dahyabhai <nalin@thermo.stat.ncsu.edu> | 8 | Nalin Dahyabhai <nalin@thermo.stat.ncsu.edu> |
9 | - Calls to pam_setcred, patch from Nalin Dahyabhai | 9 | - Calls to pam_setcred, patch from Nalin Dahyabhai |
10 | <nalin@thermo.stat.ncsu.edu> | 10 | <nalin@thermo.stat.ncsu.edu> |
11 | - Detect missing size_t and typedef it. | ||
11 | 12 | ||
12 | 19991228 | 13 | 19991228 |
13 | - Replacement for getpagesize() for systems which lack it | 14 | - Replacement for getpagesize() for systems which lack it |
diff --git a/acconfig.h b/acconfig.h index c64eb72a8..3b37c5946 100644 --- a/acconfig.h +++ b/acconfig.h | |||
@@ -113,6 +113,7 @@ | |||
113 | #undef HAVE_U_INTXX_T | 113 | #undef HAVE_U_INTXX_T |
114 | #undef HAVE_UINTXX_T | 114 | #undef HAVE_UINTXX_T |
115 | #undef HAVE_SOCKLEN_T | 115 | #undef HAVE_SOCKLEN_T |
116 | #undef HAVE_SIZE_T | ||
116 | 117 | ||
117 | /* Define if you have /dev/ptmx */ | 118 | /* Define if you have /dev/ptmx */ |
118 | #undef HAVE_DEV_PTMX | 119 | #undef HAVE_DEV_PTMX |
diff --git a/configure.in b/configure.in index 581380ae2..3b1f125c6 100644 --- a/configure.in +++ b/configure.in | |||
@@ -192,6 +192,18 @@ AC_TRY_COMPILE( | |||
192 | [AC_MSG_RESULT(no)] | 192 | [AC_MSG_RESULT(no)] |
193 | ) | 193 | ) |
194 | 194 | ||
195 | AC_MSG_CHECKING([For size_t]) | ||
196 | AC_TRY_COMPILE( | ||
197 | [#include <sys/types.h>], | ||
198 | [#include <sys/socket.h>], | ||
199 | [size_t foo; foo = 1235;], | ||
200 | [ | ||
201 | AC_DEFINE(HAVE_SIZE_T) | ||
202 | AC_MSG_RESULT(yes) | ||
203 | ], | ||
204 | [AC_MSG_RESULT(no)] | ||
205 | ) | ||
206 | |||
195 | AC_ARG_WITH(pam, | 207 | AC_ARG_WITH(pam, |
196 | [ --without-pam Disable PAM support ], | 208 | [ --without-pam Disable PAM support ], |
197 | [ | 209 | [ |
@@ -106,6 +106,10 @@ typedef int64_t quad_t; | |||
106 | typedef unsigned int socklen_t; | 106 | typedef unsigned int socklen_t; |
107 | #endif /* HAVE_SOCKLEN_T */ | 107 | #endif /* HAVE_SOCKLEN_T */ |
108 | 108 | ||
109 | #ifndef HAVE_SIZE_T | ||
110 | typedef unsigned int size_t; | ||
111 | #endif /* HAVE_SIZE_T */ | ||
112 | |||
109 | /* Paths */ | 113 | /* Paths */ |
110 | 114 | ||
111 | /* If _PATH_LASTLOG is not defined by system headers, set it to the */ | 115 | /* If _PATH_LASTLOG is not defined by system headers, set it to the */ |