mirror of
https://github.com/curl/curl.git
synced 2026-07-27 05:58:06 +03:00
configure: remove checks for 5 functions never used
fork, getprotobyname, inet_addr, perror, uname closes #1638
This commit is contained in:
parent
7121a994dd
commit
909a5bee81
2 changed files with 1 additions and 19 deletions
|
|
@ -879,19 +879,6 @@ void Curl_tcpnodelay(struct connectdata *conn, curl_socket_t sockfd)
|
|||
curl_socklen_t onoff = (curl_socklen_t) 1;
|
||||
int level = IPPROTO_TCP;
|
||||
|
||||
#if 0
|
||||
/* The use of getprotobyname() is disabled since it isn't thread-safe on
|
||||
numerous systems. On these getprotobyname_r() should be used instead, but
|
||||
that exists in at least one 4 arg version and one 5 arg version, and
|
||||
since the proto number rarely changes anyway we now just use the hard
|
||||
coded number. The "proper" fix would need a configure check for the
|
||||
correct function much in the same style the gethostbyname_r versions are
|
||||
detected. */
|
||||
struct protoent *pe = getprotobyname("tcp");
|
||||
if(pe)
|
||||
level = pe->p_proto;
|
||||
#endif
|
||||
|
||||
#if defined(CURL_DISABLE_VERBOSE_STRINGS)
|
||||
(void) conn;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue