(svn r1158) Make network compile on SunOS

This commit is contained in:
tron 2004-12-18 17:31:02 +00:00
parent 74a0d26d0e
commit 1fd06cf773

View File

@ -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>