Fix inline expects on macos

MacOS SIGUSR1 is signal 30, not 10 as it is on Linux.
At least on MacOS clang, we need the added headers to the c platform's
host to compile correctly.
This commit is contained in:
Ayaz Hafiz 2022-11-15 09:30:28 -06:00
parent de472015f6
commit b6f53f22c3
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,7 @@
const std = @import("std");
const builtin = @import("builtin");
const SIGUSR1: c_int = 10;
const SIGUSR1: c_int = if (builtin.os.tag.isDarwin()) 30 else 10;
const O_RDWR: c_int = 2;
const O_CREAT: c_int = 64;