Skip to content

Commit 4e452e9

Browse files
committed
Remove #include <syscall.h> to avoid mac os build error
Issue was found by hugohn in #5 (comment)
1 parent 9cd1a5a commit 4e452e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mp/util.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
#include <sys/types.h>
1414
#include <sys/un.h>
1515
#include <sys/wait.h>
16-
#include <syscall.h>
1716
#include <unistd.h>
1817

18+
#if __linux__
19+
#include <syscall.h>
20+
#endif
21+
1922
namespace mp {
2023
namespace {
2124

0 commit comments

Comments
 (0)