]> andersk Git - openssh.git/commitdiff
- Detect missing size_t and typedef it.
authordamien <damien>
Tue, 28 Dec 1999 23:36:45 +0000 (23:36 +0000)
committerdamien <damien>
Tue, 28 Dec 1999 23:36:45 +0000 (23:36 +0000)
ChangeLog
acconfig.h
configure.in
defines.h

index 2947cc7c0d9ac80073189e0691c5ad5c370bec9e..e9f03e24b74e0ff9015d6eae20165ff85266668f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
    Nalin Dahyabhai <nalin@thermo.stat.ncsu.edu>
  - Calls to pam_setcred, patch from Nalin Dahyabhai 
    <nalin@thermo.stat.ncsu.edu>
+ - Detect missing size_t and typedef it.
 
 19991228
  - Replacement for getpagesize() for systems which lack it
index c64eb72a89f538081356971ed8f30d3212d36288..3b37c59466f2c40bff36f240286113e184c34481 100644 (file)
 #undef HAVE_U_INTXX_T
 #undef HAVE_UINTXX_T
 #undef HAVE_SOCKLEN_T
+#undef HAVE_SIZE_T
 
 /* Define if you have /dev/ptmx */
 #undef HAVE_DEV_PTMX
index 581380ae2948104637c9b9c0d3bea5b895aa1717..3b1f125c6ee0642ea102b35e76b35e2c7c2ae2ef 100644 (file)
@@ -192,6 +192,18 @@ AC_TRY_COMPILE(
        [AC_MSG_RESULT(no)]
 )
 
+AC_MSG_CHECKING([For size_t])
+AC_TRY_COMPILE(
+       [#include <sys/types.h>],
+       [#include <sys/socket.h>],
+       [size_t foo; foo = 1235;],
+       [
+               AC_DEFINE(HAVE_SIZE_T)
+               AC_MSG_RESULT(yes)
+       ],
+       [AC_MSG_RESULT(no)]
+)
+
 AC_ARG_WITH(pam,
        [  --without-pam           Disable PAM support ],
        [
index 1437e7b263aa1bf578771386bf6e0568df8ef1ea..1a66399760d95571d141eea86a3ef71d87d224c8 100644 (file)
--- a/defines.h
+++ b/defines.h
@@ -106,6 +106,10 @@ typedef int64_t quad_t;
 typedef unsigned int socklen_t;
 #endif /* HAVE_SOCKLEN_T */
 
+#ifndef HAVE_SIZE_T
+typedef unsigned int size_t;
+#endif /* HAVE_SIZE_T */
+
 /* Paths */
 
 /* If _PATH_LASTLOG is not defined by system headers, set it to the */
This page took 0.052453 seconds and 5 git commands to generate.