summaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-05-18 21:17:25 +0000
committerrubidium <rubidium@openttd.org>2010-05-18 21:17:25 +0000
commit2de9e2d16b058971bf22e18062fc26278098dfb0 (patch)
tree8640104e4d0da4f42730c487eb227688807ca1e3 /src/os/unix
parent354645cd0af62605030514c66bfa59795fe999b9 (diff)
downloadopenttd-2de9e2d16b058971bf22e18062fc26278098dfb0.tar.xz
(svn r19853) -Fix [FS#3840]: revert r19781 and apply a more sensible version with the same effect
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/crashlog_unix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/unix/crashlog_unix.cpp b/src/os/unix/crashlog_unix.cpp
index ee86cb5ee..5f17fafdb 100644
--- a/src/os/unix/crashlog_unix.cpp
+++ b/src/os/unix/crashlog_unix.cpp
@@ -27,6 +27,10 @@
# include <dlfcn.h>
#endif
+#if defined(__NetBSD__)
+#include <unistd.h>
+#endif
+
/**
* Unix implementation for the crash logger.
*/