mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r1158) Make network compile on SunOS
This commit is contained in:
parent
74a0d26d0e
commit
1fd06cf773
@ -52,10 +52,14 @@ 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>
|
||||||
# include <ifaddrs.h>
|
# if !defined(SUNOS)
|
||||||
|
# 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
|
||||||
# define HAVE_GETIFADDRS
|
# define HAVE_GETIFADDRS
|
||||||
|
# else
|
||||||
|
# define INADDR_NONE 0xffffffff
|
||||||
|
# endif // SUNOS
|
||||||
# endif // BEOS_NET_SERVER
|
# endif // BEOS_NET_SERVER
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
# include <sys/time.h>
|
# include <sys/time.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user