summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-25 13:06:00 +0000
committerrubidium <rubidium@openttd.org>2010-02-25 13:06:00 +0000
commit77214378caf61915bc81580311643c124c4d2696 (patch)
tree47bbb8371cf81c22706c7a6c2ac8f1fd9b201fe5
parent1a89a5fc92f9e1d10b5e298c67d14e8614068742 (diff)
downloadopenttd-77214378caf61915bc81580311643c124c4d2696.tar.xz
(svn r19248) -Fix: DOS 'port' did not compile anymore
-rw-r--r--src/fileio.cpp2
-rw-r--r--src/stdafx.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 3b18da7a6..253ad8ebb 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -22,7 +22,7 @@
#include <Path.h>
#include <storage/FindDirectory.h>
#else
-#ifdef OPENBSD
+#if defined(OPENBSD) || defined(DOS)
#include <unistd.h>
#endif
#include <pwd.h>
diff --git a/src/stdafx.h b/src/stdafx.h
index 4ea5ddc58..649b80d8d 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -225,6 +225,15 @@
#endif /* defined(_MSC_VER) */
+#if defined(DOS)
+ /* The DOS port does not have all signals/signal functions. */
+ #define strsignal(sig) ""
+ /* Use 'no floating point' for bus errors; SIGBUS does not
+ * exist for does, SIGNOFP not for other platforms. So it's
+ * fairly safe the interchange those. */
+ #define SIGBUS SIGNOFP
+#endif
+
#if defined(WINCE)
#define strdup _strdup
#endif /* WINCE */