network_core.h
changeset 5305 fab86bb654da
parent 4033 20c942fbe0c0
equal deleted inserted replaced
5304:288359176ea1 5305:fab86bb654da
    62 #		include <netinet/in.h>
    62 #		include <netinet/in.h>
    63 #		include <netinet/tcp.h>
    63 #		include <netinet/tcp.h>
    64 #		include <arpa/inet.h>
    64 #		include <arpa/inet.h>
    65 #		include <net/if.h>
    65 #		include <net/if.h>
    66 // According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3.
    66 // According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3.
    67 #		if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) \
    67 #		if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) && !defined(__INNOTEK_LIBC__) \
    68 		   && !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__)
    68 		   && !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__)
    69 // If for any reason ifaddrs.h does not exist on your system, comment out
    69 // If for any reason ifaddrs.h does not exist on your system, comment out
    70 //   the following two lines and an alternative way will be used to fetch
    70 //   the following two lines and an alternative way will be used to fetch
    71 //   the list of IPs from the system.
    71 //   the list of IPs from the system.
    72 #			include <ifaddrs.h>
    72 #			include <ifaddrs.h>
   116 #	include <netdb.h>
   116 #	include <netdb.h>
   117 #	include <nerrno.h>
   117 #	include <nerrno.h>
   118 #	define INADDR_NONE 0xffffffff
   118 #	define INADDR_NONE 0xffffffff
   119 
   119 
   120 typedef int socklen_t;
   120 typedef int socklen_t;
       
   121 #if !defined(__INNOTEK_LIBC__)
   121 typedef unsigned long in_addr_t;
   122 typedef unsigned long in_addr_t;
       
   123 #endif /* __INNOTEK_LIBC__ */
   122 #endif // OS/2
   124 #endif // OS/2
   123 
   125 
   124 // MorphOS and Amiga stuff
   126 // MorphOS and Amiga stuff
   125 #if defined(__MORPHOS__) || defined(__AMIGA__)
   127 #if defined(__MORPHOS__) || defined(__AMIGA__)
   126 #	include <exec/types.h>
   128 #	include <exec/types.h>