summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-18 17:31:02 +0000
committertron <tron@openttd.org>2004-12-18 17:31:02 +0000
commit1fd06cf7731e280e118bf24d2f65aae9ef9191ed (patch)
tree3b29d8b18afeb9825321fba89adc3ad408862a94 /network_core.h
parent74a0d26d0ec77d9861daab5233e231de47f154f8 (diff)
downloadopenttd-1fd06cf7731e280e118bf24d2f65aae9ef9191ed.tar.xz
(svn r1158) Make network compile on SunOS
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/network_core.h b/network_core.h
index 61ac68740..37c51cd5d 100644
--- a/network_core.h
+++ b/network_core.h
@@ -52,10 +52,14 @@ typedef struct ifreq IFREQ;
# include <netinet/tcp.h>
# include <arpa/inet.h>
# include <net/if.h>
-# include <ifaddrs.h>
+# if !defined(SUNOS)
+# include <ifaddrs.h>
// If for any reason ifaddrs.h does not exist on a system, remove define below
// and an other system will be used to fetch ips from the system
-# define HAVE_GETIFADDRS
+# define HAVE_GETIFADDRS
+# else
+# define INADDR_NONE 0xffffffff
+# endif // SUNOS
# endif // BEOS_NET_SERVER
# include <errno.h>
# include <sys/time.h>