Merge pull request #508 from despair86/master

fix UNIX ports
pull/509/head
Rick V 6 years ago committed by GitHub
commit 06be1d88bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,7 +23,12 @@ llarp_ev_pkt_pipe::Start()
return false;
}
#else
#if defined(__linux__) || defined(__FreeBSD__)
if(pipe2(_fds, O_DIRECT | O_NONBLOCK) == -1)
#else
// non-linux reeeeeeeee
if(pipe2(_fds, O_SYNC | O_NONBLOCK) == -1)
#endif
{
return false;
}

Loading…
Cancel
Save