Skip to content

Commit b4d0e12

Browse files
authored
os: include sys/sysctl.h on FreeBSD to avoid implicit definition of sysctl function (#19293)
1 parent 055e113 commit b4d0e12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vlib/os/os.c.v

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import strings
55
#include <sys/stat.h> // #include <signal.h>
66
#include <errno.h>
77

8+
$if freebsd {
9+
#include <sys/sysctl.h>
10+
}
11+
812
pub const (
913
args = []string{}
1014
)

0 commit comments

Comments
 (0)