From 20e484bb8be4951f53dca985288ab3e232945356 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Tue, 14 Nov 2017 06:34:57 +0300 Subject: [PATCH] travis-ci cmake fix --- daemon/UPnP.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/UPnP.cpp b/daemon/UPnP.cpp index a24af559..167638e2 100644 --- a/daemon/UPnP.cpp +++ b/daemon/UPnP.cpp @@ -79,10 +79,11 @@ namespace transport void UPnP::Discover () { - int nerror = 0; #if MINIUPNPC_API_VERSION >= 14 + int nerror = 0; m_Devlist = upnpDiscover (2000, m_MulticastIf, m_Minissdpdpath, 0, 0, 2, &nerror); -#elseif MINIUPNPC_API_VERSION >= 8 +#elif MINIUPNPC_API_VERSION >= 8 + int nerror = 0; m_Devlist = upnpDiscover (2000, m_MulticastIf, m_Minissdpdpath, 0, 0, &nerror); #else m_Devlist = upnpDiscover (2000, m_MulticastIf, m_Minissdpdpath, 0);