aboutsummaryrefslogtreecommitdiff
path: root/core/net/socket.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2023-03-03 18:24:26 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2023-03-03 18:24:26 +0100
commitd939d6079a980f83f02cee10da62fea348a46b6f (patch)
treeff9247f28c59af49607280070728530bb17fbf4d /core/net/socket.odin
parent6e9475d61d303effccc3f0a48196738427f5687f (diff)
Don't try to check core:net on the BSDs.
Diffstat (limited to 'core/net/socket.odin')
-rw-r--r--core/net/socket.odin14
1 files changed, 8 insertions, 6 deletions
diff --git a/core/net/socket.odin b/core/net/socket.odin
index 1b73fcf53..95eb50496 100644
--- a/core/net/socket.odin
+++ b/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 <tetraluxonpc@gmail.com>
Copyright 2022-2023 Colin Davidson <colrdavidson@gmail.com>
@@ -10,12 +18,6 @@
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 {
switch s in socket {
case TCP_Socket: return Socket(s)