From 6a66cc2c80acaa07882c2c38735143eea7c32ba3 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 12:40:33 +0000 Subject: [PATCH] add haiku support git-svn-id: file:///raid/svn-personal/tewi/trunk@81 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Platform/haiku.mk | 9 +++++++++ Server/tw_config.h | 3 +++ Server/version.c | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 Platform/haiku.mk diff --git a/Platform/haiku.mk b/Platform/haiku.mk new file mode 100644 index 0000000..2a72693 --- /dev/null +++ b/Platform/haiku.mk @@ -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 diff --git a/Server/tw_config.h b/Server/tw_config.h index 4975d0e..27afb4c 100644 --- a/Server/tw_config.h +++ b/Server/tw_config.h @@ -13,6 +13,9 @@ #define NO_IPV6 #else #include +#ifdef __HAIKU__ +#define NO_IPV6 +#endif #endif #ifdef NO_IPV6 diff --git a/Server/version.c b/Server/version.c index a3df63b..1685b0d 100644 --- a/Server/version.c +++ b/Server/version.c @@ -15,6 +15,8 @@ const char* tw_platform = "Linux" #elif defined(__MINGW32__) "Windows" +#elif defined(__HAIKU__) + "Haiku" #else "Unix" #endif