summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--acconfig.h1
-rw-r--r--configure.in12
-rw-r--r--defines.h4
4 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2947cc7c0..e9f03e24b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
1219991228 1319991228
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
195AC_MSG_CHECKING([For size_t])
196AC_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
195AC_ARG_WITH(pam, 207AC_ARG_WITH(pam,
196 [ --without-pam Disable PAM support ], 208 [ --without-pam Disable PAM support ],
197 [ 209 [
diff --git a/defines.h b/defines.h
index 1437e7b26..1a6639976 100644
--- a/defines.h
+++ b/defines.h
@@ -106,6 +106,10 @@ typedef int64_t quad_t;
106typedef unsigned int socklen_t; 106typedef unsigned int socklen_t;
107#endif /* HAVE_SOCKLEN_T */ 107#endif /* HAVE_SOCKLEN_T */
108 108
109#ifndef HAVE_SIZE_T
110typedef 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 */