summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-15 13:31:56 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-15 13:31:56 +0000
commita4306bc3188148e99245d4e84df7e67949e5a619 (patch)
tree9da84620a5807cb66f255d2b09394154cb47c320
parent9ab8bbe92ee7d8242e958b20abb3bc7b830bcfb0 (diff)
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
-rw-r--r--src/modules/extra/m_mssql.cpp2
1 files changed, 1 insertions, 1 deletions
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 */