From 8edd4eb02751bbf45ab2833102dee3707fbbd499 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sun, 20 Jun 2010 18:17:42 +0200 Subject: Reaction to a patch sent by Jan Willies for an other problem with tntnet version string. Jan's patch resolved the immediate problem with regard to the updated version but was not backwards compatible for older tntnet version. My changes to the code adressed that problem and added an enhancement how to deal with that problem in the future. --- pages/vlc.ecpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pages/vlc.ecpp') diff --git a/pages/vlc.ecpp b/pages/vlc.ecpp index 065969c..d1f1405 100644 --- a/pages/vlc.ecpp +++ b/pages/vlc.ecpp @@ -5,6 +5,7 @@ #include "setup.h" #include "tools.h" #include "users.h" +#include "tntfeatures.h" using namespace std; using namespace vdrlive; @@ -97,7 +98,7 @@ using namespace vdrlive; } <%cpp> -#if TNTVERSION >= 1606 +#if TNT_HAS_GETHOST string server = request.getHost(); server = server.substr(0, server.rfind(':')); #else -- cgit v1.2.3