mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:43:32 +03:00
Take 2 at handling getpeername() prototypes with a void pointer for third argument
This commit is contained in:
parent
317d351423
commit
217f7a7ea7
1 changed files with 5 additions and 3 deletions
|
|
@ -3084,8 +3084,9 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
|
||||||
$curl_preprocess_callconv
|
$curl_preprocess_callconv
|
||||||
extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
|
extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
|
||||||
]],[[
|
]],[[
|
||||||
$t len = 0;
|
$t *lenptr = 0;
|
||||||
getpeername(0, 0, &len);
|
if(0 != getpeername(0, 0, lenptr))
|
||||||
|
return 1;
|
||||||
]])
|
]])
|
||||||
],[
|
],[
|
||||||
curl_typeof_curl_socklen_t="$t"
|
curl_typeof_curl_socklen_t="$t"
|
||||||
|
|
@ -3117,7 +3118,8 @@ AC_DEFUN([CURL_CONFIGURE_CURL_SOCKLEN_T], [
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
AC_MSG_RESULT([$curl_typeof_curl_socklen_t])
|
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
|
cat debug.txt >&6
|
||||||
AC_MSG_ERROR([cannot find data type for curl_socklen_t.])
|
AC_MSG_ERROR([cannot find data type for curl_socklen_t.])
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue