mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r1552) Make ottd compile on Zeta
This commit is contained in:
parent
1847b99461
commit
f4f705e723
5
Makefile
5
Makefile
@ -360,7 +360,10 @@ CDEFS += -DBEOS
|
|||||||
LDFLAGS += -lmidi -lbe
|
LDFLAGS += -lmidi -lbe
|
||||||
ifdef WITH_NETWORK
|
ifdef WITH_NETWORK
|
||||||
ifdef BEOS_NET_SERVER
|
ifdef BEOS_NET_SERVER
|
||||||
CDEFS += -DBEOS_NET_SERVER
|
CDEFS += -DBEOS_NET_SERVER
|
||||||
|
else
|
||||||
|
# Zeta needs a few more libraries than R5
|
||||||
|
LDFLAGS += -lbind -lsocket
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -60,7 +60,7 @@ typedef struct ifreq IFREQ;
|
|||||||
# include <netinet/tcp.h>
|
# include <netinet/tcp.h>
|
||||||
# include <arpa/inet.h>
|
# include <arpa/inet.h>
|
||||||
# include <net/if.h>
|
# include <net/if.h>
|
||||||
# if !defined(SUNOS) && !defined(__MORPHOS__)
|
# if !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__)
|
||||||
# include <ifaddrs.h>
|
# include <ifaddrs.h>
|
||||||
// If for any reason ifaddrs.h does not exist on a system, remove define below
|
// 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
|
// and an other system will be used to fetch ips from the system
|
||||||
@ -68,6 +68,10 @@ typedef struct ifreq IFREQ;
|
|||||||
# else
|
# else
|
||||||
# define INADDR_NONE 0xffffffff
|
# define INADDR_NONE 0xffffffff
|
||||||
# endif // SUNOS
|
# endif // SUNOS
|
||||||
|
# if defined(__BEOS__) && !defined(BEOS_NET_SERVER)
|
||||||
|
// needed on Zeta
|
||||||
|
# include <sys/sockio.h>
|
||||||
|
# endif
|
||||||
# endif // BEOS_NET_SERVER
|
# endif // BEOS_NET_SERVER
|
||||||
|
|
||||||
/* GLibc 2.1 does not support GetIfAddr() */
|
/* GLibc 2.1 does not support GetIfAddr() */
|
||||||
|
Loading…
Reference in New Issue
Block a user