gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 04/222: asyn-thread: s/AF_LOCAL/AF_UNIX for Solaris


From: gnunet
Subject: [gnurl] 04/222: asyn-thread: s/AF_LOCAL/AF_UNIX for Solaris
Date: Thu, 07 Nov 2019 00:08:20 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit e34ec7de5964baa214555115f5061ed199d0f7b4
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Sep 11 23:11:58 2019 +0200

    asyn-thread: s/AF_LOCAL/AF_UNIX for Solaris
    
    Reported-by: Dagobert Michelsen
    Fixes #4328
    Closes #4333
---
 lib/asyn-thread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c
index 24da74885..fcbf1305e 100755
--- a/lib/asyn-thread.c
+++ b/lib/asyn-thread.c
@@ -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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]