aboutsummaryrefslogtreecommitdiffstats
path: root/sdk/net/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdk/net/init.c')
-rw-r--r--sdk/net/init.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sdk/net/init.c b/sdk/net/init.c
new file mode 100644
index 0000000..02575a7
--- /dev/null
+++ b/sdk/net/init.c
@@ -0,0 +1,20 @@
+/*
+ * Needed for "winsock" compatibility only.
+ * $Id$
+ * Copyright (c) 1997 by Tycho Softworks.
+ * For conditions of distribution and reuse see product license.
+ */
+
+#include <net/socket.h>
+
+bool init_socket(void)
+{
+ return TRUE;
+}
+
+void endsocket(SOCKET so)
+{
+ shutdown(so, 2);
+ close(so);
+}
+