source: packages/net/znc/patches/002-Uclibcpp_build_fix.patch @ 26651

Last change on this file since 26651 was 26651, checked in by jogo, 5 years ago

ZNC: Update to 0.098 and minor fixes

  • Update ZNC to latest stable
  • Update download URI to new location
  • Add a fix for building webadmin with uClibc++ and enable it
  • Reduce build time slightly skipping the man target
  • Add myself as maintainer

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@…>

File size: 1.1 KB
  • modules/webadmin.cpp

    From fa14938321eda39f16bee6068296e6abc9df7b85 Mon Sep 17 00:00:00 2001
    From: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
    Date: Wed, 6 Apr 2011 04:11:48 +0200
    Subject: [PATCH] Add a uClibc++ build workaround
    
    ---
     modules/webadmin.cpp |    4 +++-
     1 files changed, 3 insertions(+), 1 deletions(-)
    
    a b  
    1515#include "WebModules.h" 
    1616#include "ZNCString.h" 
    1717#include "Listener.h" 
     18#include <string> 
    1819#include <sstream> 
    1920#include <utility> 
    2021 
    2122using std::stringstream; 
    2223using std::make_pair; 
     24using std::string; 
    2325 
    2426/* Stuff to be able to write this: 
    2527   // i will be name of local variable, see below 
    class CWebAdminMod : public CGlobalModul 
    5860public: 
    5961        GLOBALMODCONSTRUCTOR(CWebAdminMod) { 
    6062                VPair vParams; 
    61                 vParams.push_back(make_pair("user", "")); 
     63                vParams.push_back(make_pair((string)"user", (string)"")); 
    6264                AddSubPage(new CWebSubPage("settings", "Global Settings", CWebSubPage::F_ADMIN)); 
    6365                AddSubPage(new CWebSubPage("edituser", "Your Settings", vParams)); 
    6466                AddSubPage(new CWebSubPage("traffic", "Traffic Info", CWebSubPage::F_ADMIN)); 
Note: See TracBrowser for help on using the repository browser.