add haiku support

git-svn-id: file:///raid/svn-personal/tewi/trunk@81 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
Nishi 2024-09-19 12:40:33 +00:00
parent d714a56bd0
commit 6a66cc2c80
3 changed files with 14 additions and 0 deletions

9
Platform/haiku.mk Normal file
View File

@ -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

View File

@ -13,6 +13,9 @@
#define NO_IPV6
#else
#include <netinet/in.h>
#ifdef __HAIKU__
#define NO_IPV6
#endif
#endif
#ifdef NO_IPV6

View File

@ -15,6 +15,8 @@ const char* tw_platform =
"Linux"
#elif defined(__MINGW32__)
"Windows"
#elif defined(__HAIKU__)
"Haiku"
#else
"Unix"
#endif