Browse Source

Give FreeBSD access to `core:net` in `core:flags`

Feoramund 1 year ago
parent
commit
ba0581ae79

+ 1 - 1
core/flags/constants.odin

@@ -12,7 +12,7 @@ IMPORTING_TIME      :: #config(ODIN_CORE_FLAGS_USE_TIME, time.IS_SUPPORTED)
 
 // Override support for parsing `net` types.
 // TODO: Update this when the BSDs are supported.
-IMPORTING_NET       :: #config(ODIN_CORE_FLAGS_USE_NET, ODIN_OS == .Windows || ODIN_OS == .Linux || ODIN_OS == .Darwin)
+IMPORTING_NET       :: #config(ODIN_CORE_FLAGS_USE_NET, ODIN_OS == .Windows || ODIN_OS == .Linux || ODIN_OS == .Darwin || ODIN_OS == .FreeBSD)
 
 TAG_ARGS          :: "args"
 SUBTAG_NAME       :: "name"

+ 1 - 1
core/flags/errors_bsd.odin

@@ -1,4 +1,4 @@
-//+build freebsd, netbsd, openbsd
+//+build netbsd, openbsd
 package flags
 
 import "base:runtime"

+ 1 - 1
core/flags/errors_nonbsd.odin

@@ -1,4 +1,4 @@
-//+build !freebsd !netbsd !openbsd
+//+build !netbsd !openbsd
 package flags
 
 import "base:runtime"

+ 1 - 1
core/flags/internal_rtti_nonbsd.odin

@@ -1,5 +1,5 @@
 //+private
-//+build !freebsd !netbsd !openbsd
+//+build !netbsd !openbsd
 package flags
 
 import "core:net"