Browse Source

Don't try to check core:net on the BSDs.

Jeroen van Rijn 2 years ago
parent
commit
d939d6079a
5 changed files with 28 additions and 18 deletions
  1. 2 0
      core/net/addr.odin
  2. 2 0
      core/net/common.odin
  3. 8 6
      core/net/dns.odin
  4. 8 6
      core/net/interface.odin
  5. 8 6
      core/net/socket.odin

+ 2 - 0
core/net/addr.odin

@@ -1,4 +1,6 @@
+// +build windows, linux, darwin
 package net
 package net
+
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	For other protocols and their features, see subdirectories of this package.
 	For other protocols and their features, see subdirectories of this package.

+ 2 - 0
core/net/common.odin

@@ -1,4 +1,6 @@
+// +build windows, linux, darwin
 package net
 package net
+
 /*
 /*
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
 	For other protocols and their features, see subdirectories of this package.
 	For other protocols and their features, see subdirectories of this package.

+ 8 - 6
core/net/dns.odin

@@ -1,3 +1,11 @@
+// +build windows, linux, darwin
+package net
+
+/*
+	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
+	For other protocols and their features, see subdirectories of this package.
+*/
+
 /*
 /*
 	Copyright 2022 Tetralux        <[email protected]>
 	Copyright 2022 Tetralux        <[email protected]>
 	Copyright 2022 Colin Davidson  <[email protected]>
 	Copyright 2022 Colin Davidson  <[email protected]>
@@ -10,12 +18,6 @@
 		Jeroen van Rijn: Cross platform unification, code style, documentation
 		Jeroen van Rijn: Cross platform unification, code style, documentation
 */
 */
 
 
-/*
-	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
-	For other protocols and their features, see subdirectories of this package.
-*/
-package net
-
 import "core:mem"
 import "core:mem"
 import "core:strings"
 import "core:strings"
 import "core:time"
 import "core:time"

+ 8 - 6
core/net/interface.odin

@@ -1,3 +1,11 @@
+// +build windows, linux, darwin
+package net
+
+/*
+	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
+	For other protocols and their features, see subdirectories of this package.
+*/
+
 /*
 /*
 	Copyright 2022 Tetralux        <[email protected]>
 	Copyright 2022 Tetralux        <[email protected]>
 	Copyright 2022 Colin Davidson  <[email protected]>
 	Copyright 2022 Colin Davidson  <[email protected]>
@@ -10,12 +18,6 @@
 		Jeroen van Rijn: Cross platform unification, code style, documentation
 		Jeroen van Rijn: Cross platform unification, code style, documentation
 */
 */
 
 
-/*
-	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
-	For other protocols and their features, see subdirectories of this package.
-*/
-package net
-
 import "core:strings"
 import "core:strings"
 
 
 MAX_INTERFACE_ENUMERATION_TRIES :: 3
 MAX_INTERFACE_ENUMERATION_TRIES :: 3

+ 8 - 6
core/net/socket.odin

@@ -1,3 +1,11 @@
+// +build windows, linux, darwin
+package net
+
+/*
+	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
+	For other protocols and their features, see subdirectories of this package.
+*/
+
 /*
 /*
 	Copyright 2022-2023 Tetralux        <[email protected]>
 	Copyright 2022-2023 Tetralux        <[email protected]>
 	Copyright 2022-2023 Colin Davidson  <[email protected]>
 	Copyright 2022-2023 Colin Davidson  <[email protected]>
@@ -10,12 +18,6 @@
 		Jeroen van Rijn: Cross platform unification, code style, documentation
 		Jeroen van Rijn: Cross platform unification, code style, documentation
 */
 */
 
 
-/*
-	Package net implements cross-platform Berkeley Sockets, DNS resolution and associated procedures.
-	For other protocols and their features, see subdirectories of this package.
-*/
-package net
-
 any_socket_to_socket :: proc(socket: Any_Socket) -> Socket {
 any_socket_to_socket :: proc(socket: Any_Socket) -> Socket {
 	switch s in socket {
 	switch s in socket {
 	case TCP_Socket:  return Socket(s)
 	case TCP_Socket:  return Socket(s)