summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-10 00:20:26 +0000
committerDarkvater <darkvater@openttd.org>2006-12-10 00:20:26 +0000
commit14363bfb511ac9d81beaa31783ea54c8c8c6e8c4 (patch)
treeaaa2dfc73ef6e44ff99d063798b851c407836952 /network_core.h
parent74106ce6e90c2871ac78f21390ce01da6ec4f209 (diff)
downloadopenttd-14363bfb511ac9d81beaa31783ea54c8c8c6e8c4.tar.xz
(svn r7461) -Fix: [FS#262] Add support for building with GCC on OS/2 (psmedley)
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/network_core.h b/network_core.h
index f2373574c..cdc79c168 100644
--- a/network_core.h
+++ b/network_core.h
@@ -64,7 +64,7 @@ typedef unsigned long in_addr_t;
# include <arpa/inet.h>
# include <net/if.h>
// According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3.
-# if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) \
+# if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) && !defined(__INNOTEK_LIBC__) \
&& !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__)
// If for any reason ifaddrs.h does not exist on your system, comment out
// the following two lines and an alternative way will be used to fetch
@@ -118,7 +118,9 @@ typedef unsigned long in_addr_t;
# define INADDR_NONE 0xffffffff
typedef int socklen_t;
+#if !defined(__INNOTEK_LIBC__)
typedef unsigned long in_addr_t;
+#endif /* __INNOTEK_LIBC__ */
#endif // OS/2
// MorphOS and Amiga stuff