From a4306bc3188148e99245d4e84df7e67949e5a619 Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 15 Dec 2008 13:31:56 +0000 Subject: Handle file not found, and tidy up the perl. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10894 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_mssql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_mssql.cpp b/src/modules/extra/m_mssql.cpp index 92e1970c8..3083dcec2 100644 --- a/src/modules/extra/m_mssql.cpp +++ b/src/modules/extra/m_mssql.cpp @@ -21,7 +21,7 @@ #include "m_sqlv2.h" /* $ModDesc: MsSQL provider */ -/* $CompileFlags: exec("cat /usr/include/tdsver.h | grep VERSION_NO | perl -e 'if (<> =~ /freetds v([0-9]+\.[0-9]+)/i) { print "-D_TDSVER=".$1*100} else { print "-D_TDSVER=0" }'") */ +/* $CompileFlags: exec("grep VERSION_NO /usr/include/tdsver.h 2>/dev/null | perl -e 'print "-D_TDSVER=".((<> =~ /freetds v(\d+\.\d+)/i) ? $1*100 : 0);'") */ /* $LinkerFlags: -ltds */ /* $ModDep: m_sqlv2.h */ -- cgit v1.2.3