equal
deleted
inserted
replaced
55 # include <netinet/in.h> |
55 # include <netinet/in.h> |
56 # include <netinet/tcp.h> |
56 # include <netinet/tcp.h> |
57 # include <arpa/inet.h> |
57 # include <arpa/inet.h> |
58 # include <net/if.h> |
58 # include <net/if.h> |
59 // According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3. |
59 // According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3. |
60 # if !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) \ |
60 # if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) \ |
61 && !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__) |
61 && !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__) |
62 // If for any reason ifaddrs.h does not exist on your system, comment out |
62 // If for any reason ifaddrs.h does not exist on your system, comment out |
63 // the following two lines and an alternative way will be used to fetch |
63 // the following two lines and an alternative way will be used to fetch |
64 // the list of IPs from the system. |
64 // the list of IPs from the system. |
65 # include <ifaddrs.h> |
65 # include <ifaddrs.h> |