]> Git repositories of Nishi - tewi.git/commitdiff
add haiku support
authorNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 12:40:33 +0000 (12:40 +0000)
committerNishi <nishi@nishi.boats>
Thu, 19 Sep 2024 12:40:33 +0000 (12:40 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@81 8739d7e6-ffea-ec47-b151-bdff447c6205

Platform/haiku.mk [new file with mode: 0644]
Server/tw_config.h
Server/version.c

diff --git a/Platform/haiku.mk b/Platform/haiku.mk
new file mode 100644 (file)
index 0000000..2a72693
--- /dev/null
@@ -0,0 +1,9 @@
+# $Id$
+
+CC = cc
+AR = ar
+CFLAGS = -g -std=c99 -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -fPIC
+LDFLAGS =
+LIBS = -lnetwork
+EXEC =
+LIB = .so
index 4975d0ef1dcdb0f258fefde0a8a56fd7826dc82b..27afb4cca4b48a54f2a602669bf3ce4a0e7e8360 100644 (file)
@@ -13,6 +13,9 @@
 #define NO_IPV6
 #else
 #include <netinet/in.h>
+#ifdef __HAIKU__
+#define NO_IPV6
+#endif
 #endif
 
 #ifdef NO_IPV6
index a3df63b97b0efaa2d5307b532dbf2cb44d6c48ed..1685b0d24a136394cffbe411ab578ab1ce087120 100644 (file)
@@ -15,6 +15,8 @@ const char* tw_platform =
     "Linux"
 #elif defined(__MINGW32__)
     "Windows"
+#elif defined(__HAIKU__)
+    "Haiku"
 #else
     "Unix"
 #endif