packages: znc: update to 1.2
[packages.git] / net / znc / patches / 002-Uclibcpp_build_fix.patch
index 1c48478..df27c80 100644 (file)
@@ -9,23 +9,17 @@ Subject: [PATCH] Add a uClibc++ build workaround
 
 --- a/modules/webadmin.cpp
 +++ b/modules/webadmin.cpp
-@@ -15,11 +15,13 @@
- #include "WebModules.h"
- #include "ZNCString.h"
- #include "Listener.h"
-+#include <string>
- #include <sstream>
- #include <utility>
+@@ -20,6 +20,7 @@
+ #include <znc/IRCNetwork.h>
+ #include <znc/IRCSock.h>
  
++using std::string;
  using std::stringstream;
  using std::make_pair;
-+using std::string;
- /* Stuff to be able to write this:
-    // i will be name of local variable, see below
-@@ -55,7 +57,7 @@ class CWebAdminMod : public CGlobalModul
+ using std::set;
+@@ -75,7 +76,7 @@ class CWebAdminMod : public CModule {
  public:
-       GLOBALMODCONSTRUCTOR(CWebAdminMod) {
+       MODCONSTRUCTOR(CWebAdminMod) {
                VPair vParams;
 -              vParams.push_back(make_pair("user", ""));
 +              vParams.push_back(make_pair((string)"user", (string)""));