summaryrefslogtreecommitdiff
path: root/src/dedicated.cpp
diff options
context:
space:
mode:
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"