Changeset - r1343:ea7fb505ae74
[Not reviewed]
master
0 2 0
tron - 19 years ago 2005-02-08 15:42:28
tron@openttd.org
(svn r1847) Adjustment for MorphOS to unbreak the build there and removal of some now obsolete preprocessor magic
2 files changed with 3 insertions and 5 deletions:
0 comments (0 inline, 0 general)
network_core.h
Show inline comments
 
@@ -120,6 +120,7 @@ typedef unsigned long in_addr_t;
 
#	if defined(__MORPHOS__)
 
#		include <sys/filio.h> 	// FIO* defines
 
#		include <sys/sockio.h>  // SIO* defines
 
#		include <netinet/in.h>
 
#	else // __AMIGA__
 
#		include	<proto/socket.h>
 
#	endif
 
@@ -131,6 +132,7 @@ typedef unsigned long in_addr_t;
 
#	define ioctl ioctlsocket
 

	
 
	typedef unsigned int in_addr_t;
 
	typedef long         socklen_t;
 
	extern struct Library *SocketBase;
 

	
 
#	ifdef __AMIGA__
network_udp.c
Show inline comments
 
@@ -402,11 +402,7 @@ void NetworkUDPClose(void)
 
void NetworkUDPReceive(SOCKET udp)
 
{
 
	struct sockaddr_in client_addr;
 
#ifndef __MORPHOS__
 
	int client_len;
 
#else
 
	LONG client_len; // for some reason we need a 'LONG' under MorphOS
 
#endif
 
	socklen_t client_len;
 
	int nbytes;
 
	static Packet *p = NULL;
 
	int packet_len;
0 comments (0 inline, 0 general)