Skip to content

Commit

Permalink
os: include sys/sysctl.h on FreeBSD to avoid implicit definition of s…
Browse files Browse the repository at this point in the history
…ysctl function (#19293)
  • Loading branch information
kimshrier committed Sep 7, 2023
1 parent 055e113 commit b4d0e12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vlib/os/os.c.v
Expand Up @@ -5,6 +5,10 @@ import strings
#include <sys/stat.h> // #include <signal.h>
#include <errno.h>

$if freebsd {
#include <sys/sysctl.h>
}

pub const (
args = []string{}
)
Expand Down

0 comments on commit b4d0e12

Please sign in to comment.