Work around BSD lack of core:net support

This commit is contained in:
Feoramund
2024-06-15 01:32:48 -04:00
parent f28c6c3bba
commit 51a013fcf1
5 changed files with 52 additions and 21 deletions
-8
View File
@@ -1,7 +1,5 @@
package flags
import "base:runtime"
import "core:net"
import "core:os"
Parse_Error_Reason :: enum {
@@ -20,12 +18,6 @@ Parse_Error_Reason :: enum {
Unsupported_Type,
}
Unified_Parse_Error_Reason :: union #shared_nil {
Parse_Error_Reason,
runtime.Allocator_Error,
net.Parse_Endpoint_Error,
}
// Raised during parsing, naturally.
Parse_Error :: struct {
reason: Unified_Parse_Error_Reason,