diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-14 23:48:39 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-14 23:48:39 +0000 |
commit | 6f06930ee3dd0da2d7688bc6a9311bb873559ca5 (patch) | |
tree | 8ce2ca5a94c721955deb2f1222c4b5c1c582c919 /network_core.h | |
parent | 788286e9d3e7dddaf38ee8de46750206b190e06d (diff) | |
download | openttd-6f06930ee3dd0da2d7688bc6a9311bb873559ca5.tar.xz |
(svn r2316) - Fix: [ 1154454 ] Fix BeOS build on Trunk (myob)
Diffstat (limited to 'network_core.h')
-rw-r--r-- | network_core.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/network_core.h b/network_core.h index 4c92be82b..1b36b462d 100644 --- a/network_core.h +++ b/network_core.h @@ -7,6 +7,8 @@ // ============================= // Include standard stuff per OS +#ifdef ENABLE_NETWORK + // Windows stuff #if defined(WIN32) #include <windows.h> @@ -74,7 +76,7 @@ typedef struct ifreq IFREQ; # endif # endif // BEOS_NET_SERVER -# if defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 1) +# if !defined(__BEOS__) && defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 1) typedef uint32_t in_addr_t; # endif @@ -171,4 +173,6 @@ static inline bool SetNoDelay(int d) #endif } -#endif // NETWORK_CORE_H +#endif /* ENABLE_NETWORK */ + +#endif /* NETWORK_CORE_H */ |