mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 06:11:03 +00:00
Don't call sigaction() when building for NaCl
This commit is contained in:
@@ -111,7 +111,7 @@ int initializePlatformSockets(void) {
|
|||||||
#if defined(LC_WINDOWS)
|
#if defined(LC_WINDOWS)
|
||||||
WSADATA data;
|
WSADATA data;
|
||||||
return WSAStartup(MAKEWORD(2, 0), &data);
|
return WSAStartup(MAKEWORD(2, 0), &data);
|
||||||
#elif defined(LC_POSIX)
|
#elif defined(LC_POSIX) && !defined(LC_CHROME)
|
||||||
// Disable SIGPIPE signals to avoid us getting
|
// Disable SIGPIPE signals to avoid us getting
|
||||||
// killed when a socket gets an EPIPE error
|
// killed when a socket gets an EPIPE error
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
|
|||||||
Reference in New Issue
Block a user