summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-27 14:08:24 +0000
committerYang Tse <yangsita@gmail.com>2009-04-27 14:08:24 +0000
commit217f7a7ea78a85ebbc4edfe0d3c0ee2eb0b78df2 (patch)
treecd2870c09e79be2a8ed8ecba01828ac5e9310241 /acinclude.m4
parent317d3514231c839fb786f2c8c46368001a8c014f (diff)
downloadcurl-217f7a7ea78a85ebbc4edfe0d3c0ee2eb0b78df2.tar.gz
Take 2 at handling getpeername() prototypes with a void pointer for third argument
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m48
1 files changed, 5 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 44d45186d..e09e8ae84 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -3084,8 +3084,9 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
$curl_preprocess_callconv
extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
]],[[
- $t len = 0;
- getpeername(0, 0, &len);
+ $t *lenptr = 0;
+ if(0 != getpeername(0, 0, lenptr))
+ return 1;
]])
],[
curl_typeof_curl_socklen_t="$t"
@@ -3117,7 +3118,8 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
fi
done
AC_MSG_RESULT([$curl_typeof_curl_socklen_t])
- if test "$curl_typeof_curl_socklen_t" = "unknown"; then
+ if test "$curl_typeof_curl_socklen_t" = "void" ||
+ test "$curl_typeof_curl_socklen_t" = "unknown"; then
cat debug.txt >&6
AC_MSG_ERROR([cannot find data type for curl_socklen_t.])
fi