Port core:net to FreeBSD

This commit is contained in:
Feoramund
2024-06-26 10:05:24 -04:00
parent 10ce76fcc2
commit e61d893a74
9 changed files with 723 additions and 9 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
// +build windows, linux, darwin
// +build windows, linux, darwin, freebsd
package net
/*
@@ -30,7 +30,7 @@ when ODIN_OS == .Windows {
resolv_conf = "",
hosts_file = "%WINDIR%\\system32\\drivers\\etc\\hosts",
}
} else when ODIN_OS == .Linux || ODIN_OS == .Darwin || ODIN_OS == .OpenBSD || ODIN_OS == .NetBSD {
} else when ODIN_OS == .Linux || ODIN_OS == .Darwin || ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD || ODIN_OS == .NetBSD {
DEFAULT_DNS_CONFIGURATION :: DNS_Configuration{
resolv_conf = "/etc/resolv.conf",
hosts_file = "/etc/hosts",