]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
If socklen_t doesn't exist, use size_t (needed for Darwin).
authorSimon Josefsson <simon@josefsson.org>
Tue, 10 Aug 2004 12:07:48 +0000 (12:07 +0000)
committerSimon Josefsson <simon@josefsson.org>
Tue, 10 Aug 2004 12:07:48 +0000 (12:07 +0000)
configure.in

index 4b5384eb46cf5c9b65c30ff51330c4eb523a56e8..7eb9f20c84829357128d924aa2efc2c4f81334db 100644 (file)
@@ -272,6 +272,18 @@ AC_CHECK_TYPE(time_t,
 
 AC_C_BIGENDIAN
 
+AC_CHECK_TYPE([socklen_t],, [AC_DEFINE([socklen_t], [size_t],
+              [Define to `size_t' if `socklen_t' is missing.])], [
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
+])
 
 AC_MSG_RESULT([***
 *** Checking for external libraries...