From 01ab1c60011eb1b9cef03fac73da4b71410f1460 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 21 Sep 2009 18:36:33 +0000 Subject: (svn r17606) -Add: initial support for Haiku; a dedicated server with zlib and libpng compiles and links (for me). Something's fishy with the network so it doesn't actually work (yet) --- src/dedicated.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/dedicated.cpp') diff --git a/src/dedicated.cpp b/src/dedicated.cpp index 47d98157d..bdfbf2c54 100644 --- a/src/dedicated.cpp +++ b/src/dedicated.cpp @@ -19,9 +19,11 @@ #include -#if defined(SUNOS) && !defined(_LP64) && !defined(_I32LPx) +#if (defined(SUNOS) && !defined(_LP64) && !defined(_I32LPx)) || defined(__HAIKU__) /* Solaris has, in certain situation, pid_t defined as long, while in other - * cases it has it defined as int... this handles all cases nicely. */ + * cases it has it defined as int... this handles all cases nicely. + * Haiku has also defined pid_t as a long. + */ # define PRINTF_PID_T "%ld" #else # define PRINTF_PID_T "%d" -- cgit v1.2.3-54-g00ecf