You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
972 B

  1. From fa14938321eda39f16bee6068296e6abc9df7b85 Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
  3. Date: Wed, 6 Apr 2011 04:11:48 +0200
  4. Subject: [PATCH] Add a uClibc++ build workaround
  5. ---
  6. modules/webadmin.cpp | 4 +++-
  7. 1 files changed, 3 insertions(+), 1 deletions(-)
  8. --- a/modules/webadmin.cpp
  9. +++ b/modules/webadmin.cpp
  10. @@ -20,6 +20,7 @@
  11. #include <znc/IRCNetwork.h>
  12. #include <znc/IRCSock.h>
  13. +using std::string;
  14. using std::stringstream;
  15. using std::make_pair;
  16. using std::set;
  17. @@ -75,7 +76,7 @@ class CWebAdminMod : public CModule {
  18. public:
  19. MODCONSTRUCTOR(CWebAdminMod) {
  20. VPair vParams;
  21. - vParams.push_back(make_pair("user", ""));
  22. + vParams.push_back(make_pair((string)"user", (string)""));
  23. AddSubPage(new CWebSubPage("settings", "Global Settings", CWebSubPage::F_ADMIN));
  24. AddSubPage(new CWebSubPage("edituser", "Your Settings", vParams));
  25. AddSubPage(new CWebSubPage("traffic", "Traffic Info", CWebSubPage::F_ADMIN));