diff options
author | bjarni <bjarni@openttd.org> | 2004-12-22 21:12:36 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2004-12-22 21:12:36 +0000 |
commit | fb345e983e644ed54dc16419dc86efb39afeaa1a (patch) | |
tree | 152ac6fd50333783aaad3a27f3e03b5dda93fd45 /network_core.h | |
parent | 64e153fc348460aa9f495ca780311d4a8adc0a03 (diff) | |
download | openttd-fb345e983e644ed54dc16419dc86efb39afeaa1a.tar.xz |
(svn r1236) MorphOS: added make release like in OSX (tokai)
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
Diffstat (limited to 'network_core.h')
-rw-r--r-- | network_core.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/network_core.h b/network_core.h index 37c51cd5d..4eaea2d81 100644 --- a/network_core.h +++ b/network_core.h @@ -52,7 +52,7 @@ typedef struct ifreq IFREQ; # include <netinet/tcp.h> # include <arpa/inet.h> # include <net/if.h> -# if !defined(SUNOS) +# if !defined(SUNOS) && !defined(__MORPHOS__) # 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 @@ -71,7 +71,8 @@ typedef struct ifreq IFREQ; # include <exec/types.h> # include <proto/exec.h> // required for Open/CloseLibrary() # if defined(__MORPHOS__) -# include <sys/filio.h> // FION#? defines +# include <sys/filio.h> // FIO* defines +# include <sys/sockio.h> // SIO* defines # else // __AMIGA__ # include <proto/socket.h> # endif @@ -80,8 +81,17 @@ typedef struct ifreq IFREQ; # define closesocket(s) CloseSocket(s) # define GET_LAST_ERROR() Errno() # define ioctlsocket(s,request,status) IoctlSocket((LONG)s,(ULONG)request,(char*)status) +# define ioctl ioctlsocket - struct Library *SocketBase = NULL; + typedef unsigned int in_addr_t; + extern struct Library *SocketBase; + +# ifdef __AMIGA__ + // for usleep() implementation + extern struct Device *TimerBase; + extern struct MsgPort *TimerPort; + extern struct timerequest *TimerRequest; +# endif #endif // __MORPHOS__ || __AMIGA__ #endif // NETWORK_CORE_H |