Changeset - r14272:36cdf415cd1e
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2010-01-16 22:01:33
rubidium@openttd.org
(svn r18834) -Fix [FS#3538]: compilation failed on OpenBSD (matze)
2 files changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/fileio.cpp
Show inline comments
 
@@ -16,12 +16,15 @@
 
#include "fios.h"
 
#include "string_func.h"
 
#include "tar_type.h"
 
#ifdef WIN32
 
#include <windows.h>
 
#else
 
#ifdef OPENBSD
 
#include <unistd.h>
 
#endif
 
#include <pwd.h>
 
#endif
 
#include <sys/stat.h>
 
#include <algorithm>
 

	
 
/*************************************************/
src/network/core/os_abstraction.h
Show inline comments
 
@@ -124,12 +124,15 @@ static inline void OTTDfreeaddrinfo(stru
 
#define freeaddrinfo OTTDfreeaddrinfo
 
#endif /* __MINGW32__ && __CYGWIN__ */
 
#endif /* WIN32 */
 

	
 
/* UNIX stuff */
 
#if defined(UNIX) && !defined(__OS2__)
 
#	if defined(OPENBSD)
 
#		define AI_ADDRCONFIG 0
 
#	endif
 
#	define SOCKET int
 
#	define INVALID_SOCKET -1
 
#	if !defined(__MORPHOS__) && !defined(__AMIGA__)
 
#		define ioctlsocket ioctl
 
#	if !defined(BEOS_NET_SERVER)
 
#		define closesocket close
0 comments (0 inline, 0 general)