summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-08-06 14:58:06 +0000
committertruelight <truelight@openttd.org>2005-08-06 14:58:06 +0000
commit22c06dffde8a0f9084feea64390c52591efa89c5 (patch)
tree99e61820f44e2ac22558f47fcb7e147d9d0218bd /openttd.c
parent35860155f607d40faaa0fc5fc786662f1356062d (diff)
downloadopenttd-22c06dffde8a0f9084feea64390c52591efa89c5.tar.xz
(svn r2814) -Fix: made MorphOS to compile again
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/openttd.c b/openttd.c
index f5659562b..4388866be 100644
--- a/openttd.c
+++ b/openttd.c
@@ -302,7 +302,9 @@ static void LoadIntroGame(void)
if (_music_driver->is_song_playing()) ResetMusic();
}
+#if defined(UNIX) && !defined(__MORPHOS__)
extern void DedicatedFork(void);
+#endif
extern void CheckExternalFiles(void);
int ttd_main(int argc, char* argv[])
@@ -417,7 +419,7 @@ int ttd_main(int argc, char* argv[])
gpmi_path_append(&gpmi_path_packages, "gpmi/packages");
#endif /* GPMI */
-#ifdef UNIX
+#if defined(UNIX) && !defined(__MORPHOS__)
// We must fork here, or we'll end up without some resources we need (like sockets)
if (_dedicated_forks)
DedicatedFork();