aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-27 12:41:05 +0000
committerYang Tse <yangsita@gmail.com>2009-04-27 12:41:05 +0000
commit317d3514231c839fb786f2c8c46368001a8c014f (patch)
tree08c843b9070eab9a1680b982b0facc0336b2f51d
parentd27519c0caf1dd14fd989f90d7121e532de5911d (diff)
Attempt to handle getpeername() prototypes with a void pointer for third argument
-rw-r--r--acinclude.m420
1 files changed, 19 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index d2f649a77..44d45186d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -3075,7 +3075,7 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
rm -f debug.txt
for arg1 in int SOCKET; do
for arg2 in 'struct sockaddr' void; do
- for t in socklen_t int size_t 'unsigned int' long 'unsigned long'; do
+ for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
if test "$curl_typeof_curl_socklen_t" = "unknown"; then
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
@@ -3098,6 +3098,24 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
done
done
done
+ for t in socklen_t int; do
+ if test "$curl_typeof_curl_socklen_t" = "void"; then
+ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM([[
+ $curl_includes_sys_socket
+ typedef $t curl_socklen_t;
+ ]],[[
+ curl_socklen_t dummy;
+ ]])
+ ],[
+ curl_typeof_curl_socklen_t="$t"
+ ],[
+ echo "DEBUG: ======================================" >>debug.txt
+ sed 's/^/cc-src: /' conftest.$ac_ext >>debug.txt
+ sed 's/^/cc-err: /' conftest.err >>debug.txt
+ ])
+ fi
+ done
AC_MSG_RESULT([$curl_typeof_curl_socklen_t])
if test "$curl_typeof_curl_socklen_t" = "unknown"; then
cat debug.txt >&6