mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-03 11:59:15 +00:00
(svn r18834) -Fix [FS#3538]: compilation failed on OpenBSD (matze)
This commit is contained in:
@@ -19,6 +19,9 @@
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
|
#ifdef OPENBSD
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@@ -127,6 +127,9 @@ static inline void OTTDfreeaddrinfo(struct addrinfo *ai)
|
|||||||
|
|
||||||
/* UNIX stuff */
|
/* UNIX stuff */
|
||||||
#if defined(UNIX) && !defined(__OS2__)
|
#if defined(UNIX) && !defined(__OS2__)
|
||||||
|
# if defined(OPENBSD)
|
||||||
|
# define AI_ADDRCONFIG 0
|
||||||
|
# endif
|
||||||
# define SOCKET int
|
# define SOCKET int
|
||||||
# define INVALID_SOCKET -1
|
# define INVALID_SOCKET -1
|
||||||
# if !defined(__MORPHOS__) && !defined(__AMIGA__)
|
# if !defined(__MORPHOS__) && !defined(__AMIGA__)
|
||||||
|
Reference in New Issue
Block a user