Mercurial > hg > openttd
changeset 15152:1d73b4a8c4a8 draft
(svn r19781) -Fix [FS#3809]: compilation on NetBSD failed (Krille)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 10 May 2010 17:11:24 +0000 |
parents | 48875bb4f103 |
children | 9aaf67d04ded |
files | config.lib src/network/core/os_abstraction.h src/stdafx.h |
diffstat | 3 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/config.lib +++ b/config.lib @@ -2318,6 +2318,13 @@ 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