From 5f4fb857f02ef7e21f181d4a8fb064a4074bbab8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 30 Oct 2003 07:08:45 +0000 Subject: [PATCH] Added proper #ifdef's for the #include files when checking for in_addr_t, which made the test start working nicely on BeOS. Shard verified it. --- acinclude.m4 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index f847a8fbd..dbd83d760 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -140,8 +140,12 @@ AC_DEFUN([TYPE_SOCKLEN_T], for arg2 in "struct sockaddr" void; do for t in int size_t unsigned long "unsigned long"; do AC_TRY_COMPILE([ + #ifdef HAVE_SYS_TYPES_H #include + #endif + #ifdef HAVE_SYS_SOCKET_H #include + #endif int getpeername (int, $arg2 *, $t *); ],[ @@ -177,9 +181,15 @@ AC_DEFUN([TYPE_IN_ADDR_T], curl_cv_in_addr_t_equiv= for t in "unsigned long" int size_t unsigned long; do AC_TRY_COMPILE([ + #ifdef HAVE_SYS_TYPES_H #include + #endif + #ifdef HAVE_SYS_SOCKET_H #include + #endif + #ifdef HAVE_ARPA_INET_H #include + #endif ],[ $t data = inet_addr ("1.2.3.4"); ],[