2003-10-24 Moritz Schulte <mo@g10code.com>
authorMoritz Schulte <mo@g10code.com>
Fri, 24 Oct 2003 16:28:11 +0000 (16:28 +0000)
committerMoritz Schulte <mo@g10code.com>
Fri, 24 Oct 2003 16:28:11 +0000 (16:28 +0000)
* configure.ac: Check for socklen_t.

ChangeLog
configure.ac

index e861643..2c1fad8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-10-24  Moritz Schulte  <mo@g10code.com>
+
+       * configure.ac: Check for socklen_t.
+
 2003-10-11  Moritz Schulte  <mo@g10code.com>
 
        * acinclude.m4: Update AM_PATH_GPG_ERROR macro.
index f7e05e3..bc6941b 100644 (file)
@@ -462,6 +462,15 @@ GNUPG_CHECK_TYPEDEF(ulong, HAVE_ULONG_TYPEDEF)
 GNUPG_CHECK_TYPEDEF(u16, HAVE_U16_TYPEDEF)
 GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF)
 
+AC_CHECK_TYPE(socklen_t,,
+              [AC_DEFINE_UNQUOTED([socklen_t],
+                                  [int],
+                                  [Define to `int' if unavailable.])],
+              [
+#include <sys/types.h>
+#include <sys/socket.h>
+              ])
+
 #######################################
 #### Checks for library functions. ####
 #######################################