From: Nishi Date: Thu, 19 Sep 2024 12:40:33 +0000 (+0000) Subject: add haiku support X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=6a66cc2c80acaa07882c2c38735143eea7c32ba3;p=tewi.git add haiku support git-svn-id: file:///raid/svn-personal/tewi/trunk@81 8739d7e6-ffea-ec47-b151-bdff447c6205 --- 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