summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>