diff options
author | bjarni <bjarni@openttd.org> | 2004-12-22 21:12:36 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2004-12-22 21:12:36 +0000 |
commit | fb345e983e644ed54dc16419dc86efb39afeaa1a (patch) | |
tree | 152ac6fd50333783aaad3a27f3e03b5dda93fd45 /dedicated.c | |
parent | 64e153fc348460aa9f495ca780311d4a8adc0a03 (diff) | |
download | openttd-fb345e983e644ed54dc16419dc86efb39afeaa1a.tar.xz |
(svn r1236) MorphOS: added make release like in OSX (tokai)
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
Diffstat (limited to 'dedicated.c')
-rw-r--r-- | dedicated.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dedicated.c b/dedicated.c index 5197dd924..051573bee 100644 --- a/dedicated.c +++ b/dedicated.c @@ -20,6 +20,13 @@ # include <signal.h> # define STDIN 0 /* file descriptor for standard input */ #endif +#ifdef __MORPHOS__ +/* voids the fork, option will be disabled for morphos build anyway, because MorphOS + * doesn't support forking (could only implemented with lots of code changes here). + */ +int morphos_dummy_fork() { return -1; } +#define fork morphos_dummy_fork +#endif // This file handles all dedicated-server in- and outputs @@ -167,7 +174,7 @@ static int DedicatedVideoMainLoop() next_tick = (tim.tv_usec / 1000) + 30 + (tim.tv_sec * 1000); #endif - /* Siganl handlers */ + /* Signal handlers */ #ifdef UNIX signal(SIGTERM, DedicatedSignalHandler); signal(SIGINT, DedicatedSignalHandler); |