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