mirror of
https://github.com/curl/curl.git
synced 2026-07-23 19:27:17 +03:00
asyn-thread: s/AF_LOCAL/AF_UNIX for Solaris
Reported-by: Dagobert Michelsen Fixes #4328 Closes #4333
This commit is contained in:
parent
a765a30500
commit
e34ec7de59
1 changed files with 2 additions and 2 deletions
|
|
@ -244,8 +244,8 @@ int init_thread_sync_data(struct thread_data * td,
|
|||
Curl_mutex_init(tsd->mtx);
|
||||
|
||||
#ifdef HAVE_SOCKETPAIR
|
||||
/* create socket pair */
|
||||
if(socketpair(AF_LOCAL, SOCK_STREAM, 0, &tsd->sock_pair[0]) < 0) {
|
||||
/* create socket pair, avoid AF_LOCAL since it doesn't build on Solaris */
|
||||
if(socketpair(AF_UNIX, SOCK_STREAM, 0, &tsd->sock_pair[0]) < 0) {
|
||||
tsd->sock_pair[0] = CURL_SOCKET_BAD;
|
||||
tsd->sock_pair[1] = CURL_SOCKET_BAD;
|
||||
goto err_exit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue