os,ci: use a conditional include, instead of a platform file, to include libproc.h on macos only

This commit is contained in:
Delyan Angelov 2025-09-05 12:50:22 +03:00
parent 35510bc659
commit 4dcf79e388
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,10 @@ import strings
#include <sys/stat.h> // #include <signal.h>
#include <errno.h>
$if macos {
#include <libproc.h>
}
$if freebsd || openbsd {
#include <sys/sysctl.h>
}

View File

@ -3,8 +3,6 @@
// that can be found in the LICENSE file.
module os
#include <libproc.h>
pub const sys_write = 4
pub const sys_open = 5
pub const sys_close = 6