Changeset - r15142:8c4a39ffa5cb
[Not reviewed]
master
0 3 0
rubidium - 14 years ago 2010-05-10 17:11:24
rubidium@openttd.org
(svn r19781) -Fix [FS#3809]: compilation on NetBSD failed (Krille)
3 files changed with 11 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -2318,6 +2318,13 @@ detect_library() {
 
		if [ -z "$res" ]; then
 
			log 2 "  trying /opt/local/include/$4$5... no"
 
		fi
 
		if [ -z "$res" ] && [ "$os" = "NETBSD" ]; then
 
			eval "$2=`ls -1 /usr/pkg/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
 
			eval "res=\$$2"
 
			if [ -z "$res" ]; then
 
				log 2 "  trying /usr/pkg/include/$4$5... no"
 
			fi
 
		fi
 

	
 
		eval "res=\$$2"
 
		if [ -n "$res" ] && ( [ -n "$force_static" ] || ( [ "$enable_static" != "0" ] && [ "$os" != "OSX" ] ) ); then
src/network/core/os_abstraction.h
Show inline comments
 
@@ -127,7 +127,7 @@ static inline void OTTDfreeaddrinfo(stru
 

	
 
/* UNIX stuff */
 
#if defined(UNIX) && !defined(__OS2__)
 
#	if defined(OPENBSD)
 
#	if defined(OPENBSD) || defined(__NetBSD__)
 
#		define AI_ADDRCONFIG 0
 
#	endif
 
#	define SOCKET int
src/stdafx.h
Show inline comments
 
@@ -24,6 +24,9 @@
 
#elif defined(__NDS__)
 
	#include <nds/jtypes.h>
 
	#define TROUBLED_INTS
 
#elif defined(__NetBSD__)
 
	#include <unistd.h>
 
	#define _GNU_SOURCE
 
#endif
 

	
 
/* It seems that we need to include stdint.h before anything else
0 comments (0 inline, 0 general)