mirror of https://github.com/BOINC/boinc.git
GUI RPC: Fix Unix domain stuff for Mac OS X
This commit is contained in:
parent
c326c41cb3
commit
d4aafeb91f
|
@ -223,7 +223,7 @@ int GUI_RPC_CONN_SET::insert(GUI_RPC_CONN* p) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int GUI_RPC_CONN_SET::init_unix_domain() {
|
int GUI_RPC_CONN_SET::init_unix_domain() {
|
||||||
#if !defined(_WIN32) && !defined(__APPLE__)
|
#if !defined(_WIN32)
|
||||||
struct sockaddr_un addr;
|
struct sockaddr_un addr;
|
||||||
get_password();
|
get_password();
|
||||||
int retval = boinc_socket(lsock, AF_UNIX);
|
int retval = boinc_socket(lsock, AF_UNIX);
|
||||||
|
|
|
@ -237,8 +237,8 @@ int RPC_CLIENT::init_poll() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int RPC_CLIENT::init_unix_domain() {
|
int RPC_CLIENT::init_unix_domain() {
|
||||||
#if defined(_WIN32) || defined(__APPLE__)
|
#if defined(_WIN32)
|
||||||
fprintf(stderr, "Unix domain not implemented in Windows or Mac\n");
|
fprintf(stderr, "Unix domain not implemented in Windows\n");
|
||||||
return -1;
|
return -1;
|
||||||
#else
|
#else
|
||||||
struct sockaddr_un addr_un;
|
struct sockaddr_un addr_un;
|
||||||
|
|
Loading…
Reference in New Issue