fixed problem concerning determining SOCKLEN_T as pointed out by Daniel
* acinclude.m4, configure.in: fixed problem concerning
determining SOCKLEN_T as pointed out by Daniel Richard G.
on the mailing list
diff --git a/ChangeLog b/ChangeLog
index 057b241..b1d5698 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Feb 9 22:37:14 HKT 2004 William Brack <wbrack@mmm.com.hk>
+
+ * acinclude.m4, configure.in: fixed problem concerning
+ determining SOCKLEN_T as pointed out by Daniel Richard G.
+ on the mailing list
+
Mon Feb 9 15:31:24 CET 2004 Igor Zlatkovic <igor@zlatkovic.com>
* nanohttp.c: fixed buffer overflow reported by Yuuichi Teranishi
diff --git a/acinclude.m4 b/acinclude.m4
index 44c386a..4ff672e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -11,7 +11,7 @@
[#]line __oline__ "configure"
#include "confdefs.h"
[$1]
-int main() {
+int main(void) {
[$2]
; return 0; }
EOF
diff --git a/configure.in b/configure.in
index bc56453..7a98656 100644
--- a/configure.in
+++ b/configure.in
@@ -205,7 +205,8 @@
(void)getsockopt (1, 1, 1, NULL, (int *)NULL)],[
AC_MSG_RESULT(int *)
SOCKLEN_T=int],[
- AC_MSG_WARN(could not determine)])])])
+ AC_MSG_WARN(could not determine)
+ SOCKLEN_T="unsigned int"])])])
AC_DEFINE_UNQUOTED(SOCKLEN_T, $SOCKLEN_T, [Determine what socket length (socklen_t) data type is])
dnl ***********************Checking for availability of IPv6*******************