os: include sys/sysctl.h on FreeBSD to avoid implicit definition of sysctl function (#19293)

This commit is contained in:
Kim Shrier 2023-09-07 07:08:18 -06:00 committed by GitHub
parent 055e113af3
commit b4d0e12c4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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{}
)