Skip to content
Snippets Groups Projects
Commit 03af76b6 authored by Yang Tse's avatar Yang Tse
Browse files

Since there is no proof of the existence of a platform which would

justify checking for socklen_t in more than one function, the code
used to find a valid socklen_t replacement is simplified back. The
only function that will be used to find a socklen_t replacement is
getpeername, as it has been since revision 1.4 of curl/acinclude.m4
parent e105d5c2
No related branches found
No related tags found
No related merge requests found
......@@ -152,15 +152,9 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
#endif
#endif
int getpeername (int, $arg2 *, $t *);
int getsockname (int, $arg2 *, $t *);
int bind (int, $arg2 *, $t);
int accept (int, $arg2 *, $t *);
],[
$t len=0;
getpeername(0,0,&len);
getsockname(0,0,&len);
bind(0,0,len);
accept(0,0,&len);
])
],[
curl_cv_socklen_t_equiv="$t"
......
......@@ -152,15 +152,9 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
#endif
#endif
int getpeername (int, $arg2 *, $t *);
int getsockname (int, $arg2 *, $t *);
int bind (int, $arg2 *, $t);
int accept (int, $arg2 *, $t *);
],[
$t len=0;
getpeername(0,0,&len);
getsockname(0,0,&len);
bind(0,0,len);
accept(0,0,&len);
])
],[
curl_cv_socklen_t_equiv="$t"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment