which made the test start working nicely on BeOS. Shard verified it.
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 <sys/types.h>
+ #endif
+ #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+ #endif
int getpeername (int, $arg2 *, $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 <sys/types.h>
+ #endif
+ #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+ #endif
+ #ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
+ #endif
],[
$t data = inet_addr ("1.2.3.4");
],[