summaryrefslogtreecommitdiff
path: root/dedicated.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-25 16:33:58 +0000
committertron <tron@openttd.org>2005-07-25 16:33:58 +0000
commit84f78ea44a90763e9a35776024f214f3c68dd6fe (patch)
tree072ce4845cd4bb6c73c44598de9516a00409e542 /dedicated.c
parentf60b122a68ec1b9ea203a95146835d3796841286 (diff)
downloadopenttd-84f78ea44a90763e9a35776024f214f3c68dd6fe.tar.xz
(svn r2710) Simplify dedicated server code a bit and don't compile it at all, if network support ist disabled
Diffstat (limited to 'dedicated.c')
-rw-r--r--dedicated.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/dedicated.c b/dedicated.c
index cb5b8a23b..77be5fe37 100644
--- a/dedicated.c
+++ b/dedicated.c
@@ -1,32 +1,17 @@
/* $Id$ */
#include "stdafx.h"
-#include "openttd.h"
#ifdef ENABLE_NETWORK
-#include "variables.h"
-
-#ifdef __OS2__
-# include <sys/types.h>
-# include <unistd.h>
-#endif
+#if defined(UNIX) && !defined(__MORPHOS__)
-#ifdef UNIX
-# include <sys/types.h>
-# include <unistd.h>
-#endif
+#include "openttd.h"
+#include "variables.h"
-#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 fork(void) { return -1; }
-int dup2(int oldd, int newd) { return -1; }
-#endif
+#include <sys/types.h>
+#include <unistd.h>
-#ifdef UNIX
-/* We want to fork our dedicated server */
void DedicatedFork(void)
{
/* Fork the program */