added IS_SUPPORTED to core:sys/posix
@@ -53,6 +53,8 @@ import "base:intrinsics"
import "core:c"
+IS_SUPPORTED :: _IS_SUPPORTED
+
result :: enum c.int {
// Use `errno` and `strerror` for more information.
FAIL = -1,
@@ -0,0 +1,10 @@
+#+build !linux
+#+build !darwin
+#+build !netbsd
+#+build !openbsd
+#+build !freebsd
+#+build !haiku
+package posix
+_IS_SUPPORTED :: false
@@ -0,0 +1,5 @@
+#+build linux, darwin, netbsd, openbsd, freebsd, haiku
+_IS_SUPPORTED :: true