summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-01-26 08:27:59 +0000
committertruelight <truelight@openttd.org>2007-01-26 08:27:59 +0000
commitcf07eafb97ca0fabe6b501a7872ec6df8ee4521c (patch)
tree41238deff0a0bf3a719e3acfd55785d1bfb3f9a1 /src/network/core
parentc9f4c637fbe54dceb9d8afbe95ca77074542d0dc (diff)
downloadopenttd-cf07eafb97ca0fabe6b501a7872ec6df8ee4521c.tar.xz
(svn r8411) [MorphOS] -Fix: tons of unneeded warnings in networking code, because MorphOS wants UBYTE arrays and we use char arrays. Solution is a bit hackish.
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/os_abstraction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h
index d90b152a5..c4cbcee20 100644
--- a/src/network/core/os_abstraction.h
+++ b/src/network/core/os_abstraction.h
@@ -124,6 +124,9 @@ typedef unsigned long in_addr_t;
#if defined(__MORPHOS__) || defined(__AMIGA__)
# include <exec/types.h>
# include <proto/exec.h> // required for Open/CloseLibrary()
+ /* MorphOS defines his network functions with UBYTE arrays while we
+ * use char arrays. This gives tons of unneeded warnings */
+# define UBYTE char
# if defined(__MORPHOS__)
# include <sys/filio.h> // FIO* defines
# include <sys/sockio.h> // SIO* defines