mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19248) -Fix: DOS 'port' did not compile anymore
This commit is contained in:
parent
1a89a5fc92
commit
77214378ca
|
@ -22,7 +22,7 @@
|
||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <storage/FindDirectory.h>
|
#include <storage/FindDirectory.h>
|
||||||
#else
|
#else
|
||||||
#ifdef OPENBSD
|
#if defined(OPENBSD) || defined(DOS)
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
|
|
@ -225,6 +225,15 @@
|
||||||
|
|
||||||
#endif /* defined(_MSC_VER) */
|
#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)
|
#if defined(WINCE)
|
||||||
#define strdup _strdup
|
#define strdup _strdup
|
||||||
#endif /* WINCE */
|
#endif /* WINCE */
|
||||||
|
|
Loading…
Reference in New Issue