Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

git-svn-id: svn://cherokee-project.com/cherokee/trunk@1308 5dc97367-9…

…7f1-0310-9951-d761b3857238
  • Loading branch information...
commit fc666b24b9a0119d2a0afa772154227060d03ed2 1 parent 702c2f7
@alobbs alobbs authored
Showing with 21 additions and 3 deletions.
  1. +2 −0  ChangeLog
  2. +19 −3 configure.in
View
2  ChangeLog
@@ -1,5 +1,7 @@
2008-03-21 Alvaro Lopez Ortega <alvaro@alobbs.com>
+ * configure.in: Check for socklen_t has been reworked.
+
* configure.in: Removed a few bashisms.
* doc/Makefile.am: Removed unnecessary checks. Not concurrency is
View
22 configure.in
@@ -792,9 +792,25 @@ if test x"$ac_cv_so_rcvtimeo_broken" = x"yes"; then
AC_DEFINE(HAVE_BROKEN_SO_RCVTIMEO, 1, [Define if setsockopt(SO_RCVTIMEO) is broken])
fi
-AC_CHECK_TYPE(socklen_t, int, ,[[
-#include <netinet/in.h>
-]])
+
+dnl
+dnl Look for socklen_t
+dnl
+AC_MSG_CHECKING([for socklen_t])
+AC_TRY_COMPILE(
+ [#include <sys/types.h>
+ #include <sys/socket.h>],
+ [socklen_t len = 42; return 0;],
+ ac_cv_type_socklen_t=yes,
+ ac_cv_type_socklen_t=no
+)
+
+if test $ac_cv_type_socklen_t != yes; then
+ AC_DEFINE(socklen_t, int, [Substitute for socklen_t])
+ AC_MSG_RESULT(int)
+else
+ AC_MSG_RESULT(yes)
+fi
dnl
dnl Check of __func__ and co..

0 comments on commit fc666b2

Please sign in to comment.
Something went wrong with that request. Please try again.