mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 04:57:49 +00:00
os: make getApplFreebsd available for NetBSD (#15381)
NetBSD was switched to getApplFreebsd() in #15359, however the proc was not made available for the said target. This commit exposes `getApplFreebsd()` to NetBSD.
This commit is contained in:
@@ -2814,7 +2814,7 @@ else:
|
||||
"commandLineParams() unsupported by dynamic libraries".} =
|
||||
discard
|
||||
|
||||
when not weirdTarget and (defined(freebsd) or defined(dragonfly)):
|
||||
when not weirdTarget and (defined(freebsd) or defined(dragonfly) or defined(netbsd)):
|
||||
proc sysctl(name: ptr cint, namelen: cuint, oldp: pointer, oldplen: ptr csize_t,
|
||||
newp: pointer, newplen: csize_t): cint
|
||||
{.importc: "sysctl",header: """#include <sys/types.h>
|
||||
|
||||
Reference in New Issue
Block a user