summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--louloulibs/network/resolver.cpp1
-rw-r--r--src/bridge/bridge.hpp2
-rw-r--r--src/irc/iid.cpp2
-rw-r--r--src/irc/iid.hpp2
4 files changed, 5 insertions, 2 deletions
diff --git a/louloulibs/network/resolver.cpp b/louloulibs/network/resolver.cpp
index 9d6de23..d3ecd7c 100644
--- a/louloulibs/network/resolver.cpp
+++ b/louloulibs/network/resolver.cpp
@@ -2,6 +2,7 @@
#include <network/resolver.hpp>
#include <string.h>
#include <arpa/inet.h>
+#include <cstdlib>
using namespace std::string_literals;
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp
index 1a1d201..208de32 100644
--- a/src/bridge/bridge.hpp
+++ b/src/bridge/bridge.hpp
@@ -19,7 +19,7 @@
class BiboumiComponent;
class Poller;
-class ResultSetInfo;
+struct ResultSetInfo;
/**
* A callback called for each IrcMessage we receive. If the message triggers
diff --git a/src/irc/iid.cpp b/src/irc/iid.cpp
index ff14da5..d442013 100644
--- a/src/irc/iid.cpp
+++ b/src/irc/iid.cpp
@@ -5,6 +5,8 @@
#include <utils/encoding.hpp>
+constexpr char Iid::separator[];
+
Iid::Iid(const std::string& local, const std::string& server, Iid::Type type):
type(type),
local(local),
diff --git a/src/irc/iid.hpp b/src/irc/iid.hpp
index a857ae9..44861c1 100644
--- a/src/irc/iid.hpp
+++ b/src/irc/iid.hpp
@@ -54,7 +54,7 @@ public:
User,
Server,
};
- static constexpr auto separator = "%";
+ static constexpr char separator[]{"%"};
Iid(const std::string& iid, const std::set<char>& chantypes);
Iid(const std::string& iid, const std::initializer_list<char>& chantypes);
Iid(const std::string& iid, const Bridge* bridge);