network_core.h
changeset 781 4c9177888196
parent 774 bb9ec520a1b1
child 789 3a12c1eadc3f
equal deleted inserted replaced
780:690a9a22dacd 781:4c9177888196
    64 #	include <errno.h>
    64 #	include <errno.h>
    65 #	include <sys/time.h>
    65 #	include <sys/time.h>
    66 #	include <netdb.h>
    66 #	include <netdb.h>
    67 #endif // UNIX
    67 #endif // UNIX
    68 
    68 
       
    69 // OS/2 stuff
       
    70 #if defined(__OS2__)
       
    71 #	define SOCKET int
       
    72 #	define INVALID_SOCKET -1
       
    73 typedef struct ifreq IFREQ;
       
    74 #	define ioctlsocket ioctl
       
    75 #	define closesocket close
       
    76 #	define GET_LAST_ERROR() (errno)
       
    77 
       
    78 // Includes needed for OS/2 systems
       
    79 #	include <types.h>
       
    80 #	include <unistd.h>
       
    81 #	include <sys/ioctl.h>
       
    82 #	include <sys/socket.h>
       
    83 #	include <netinet/in.h>
       
    84 #	include <netinet/tcp.h>
       
    85 #	include <arpa/inet.h>
       
    86 #	include <net/if.h>
       
    87 #	include <errno.h>
       
    88 #	include <sys/time.h>
       
    89 #	include <netdb.h>
       
    90 #	include <nerrno.h>
       
    91 
       
    92 typedef unsigned long in_addr_t;
       
    93 #endif // OS/2
       
    94 
    69 // MorphOS and Amiga stuff
    95 // MorphOS and Amiga stuff
    70 #if defined(__MORPHOS__) || defined(__AMIGA__)
    96 #if defined(__MORPHOS__) || defined(__AMIGA__)
    71 #	include <exec/types.h>
    97 #	include <exec/types.h>
    72 #	include <proto/exec.h>		// required for Open/CloseLibrary()
    98 #	include <proto/exec.h>		// required for Open/CloseLibrary()
    73 #	if defined(__MORPHOS__)
    99 #	if defined(__MORPHOS__)