From 1fd06cf7731e280e118bf24d2f65aae9ef9191ed Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 18 Dec 2004 17:31:02 +0000 Subject: [PATCH] (svn r1158) Make network compile on SunOS --- network_core.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/network_core.h b/network_core.h index 61ac68740e..37c51cd5d3 100644 --- a/network_core.h +++ b/network_core.h @@ -52,10 +52,14 @@ typedef struct ifreq IFREQ; # include # include # include -# include +# if !defined(SUNOS) +# include // 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 # include