mirror of
https://github.com/vlang/v.git
synced 2025-09-09 07:15:50 -04:00
os,ci: use a conditional include, instead of a platform file, to include libproc.h on macos only
This commit is contained in:
parent
35510bc659
commit
4dcf79e388
@ -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>
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user