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
This commit is contained in:
William M. Brack 2004-02-09 15:10:28 +00:00
parent 377043562b
commit 2e6b143e8a
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -11,7 +11,7 @@ AC_DEFUN([AC_TRY_COMPILE2],
[#]line __oline__ "configure"
#include "confdefs.h"
[$1]
int main() {
int main(void) {
[$2]
; return 0; }
EOF

View File

@ -205,7 +205,8 @@ AC_TRY_COMPILE2([
(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*******************