equal
deleted
inserted
replaced
50 # include <sys/socket.h> |
50 # include <sys/socket.h> |
51 # include <netinet/in.h> |
51 # include <netinet/in.h> |
52 # include <netinet/tcp.h> |
52 # include <netinet/tcp.h> |
53 # include <arpa/inet.h> |
53 # include <arpa/inet.h> |
54 # include <net/if.h> |
54 # include <net/if.h> |
55 # include <ifaddrs.h> |
55 # if !defined(SUNOS) |
|
56 # include <ifaddrs.h> |
56 // If for any reason ifaddrs.h does not exist on a system, remove define below |
57 // If for any reason ifaddrs.h does not exist on a system, remove define below |
57 // and an other system will be used to fetch ips from the system |
58 // and an other system will be used to fetch ips from the system |
58 # define HAVE_GETIFADDRS |
59 # define HAVE_GETIFADDRS |
|
60 # else |
|
61 # define INADDR_NONE 0xffffffff |
|
62 # endif // SUNOS |
59 # endif // BEOS_NET_SERVER |
63 # endif // BEOS_NET_SERVER |
60 # include <errno.h> |
64 # include <errno.h> |
61 # include <sys/time.h> |
65 # include <sys/time.h> |
62 # include <netdb.h> |
66 # include <netdb.h> |
63 #endif // UNIX |
67 #endif // UNIX |