summaryrefslogtreecommitdiff
path: root/src/dedicated.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-21 18:36:33 +0000
committerrubidium <rubidium@openttd.org>2009-09-21 18:36:33 +0000
commit01ab1c60011eb1b9cef03fac73da4b71410f1460 (patch)
treedb7eec7f2444b6f5381730c56692700a22551f77 /src/dedicated.cpp
parent3dd202ba1c15bb5e1bac3ab21eed7f63435a88bb (diff)
downloadopenttd-01ab1c60011eb1b9cef03fac73da4b71410f1460.tar.xz
(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)
Diffstat (limited to 'src/dedicated.cpp')
-rw-r--r--src/dedicated.cpp6
1 files changed, 4 insertions, 2 deletions
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 <unistd.h>
-#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"