From ca36887ddf80c193bb3ae9c6b777f9adec429d1c Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 2 Apr 2011 23:28:32 +0200 Subject: [PATCH] Don't include znc.h in Listener.h znc.h pulls in most headers, Socket.h pulls in way less headers. This should speed up compiles by 0.0000000314%. The rest of this is compile fixes for stuff which assumed that Listener.h includes znc.h for them. :-) Signed-off-by: Uli Schlachter --- Listener.cpp | 1 + Listener.h | 2 +- modules/certauth.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Listener.cpp b/Listener.cpp index 61ffc391..be95abd6 100644 --- a/Listener.cpp +++ b/Listener.cpp @@ -7,6 +7,7 @@ */ #include "Listener.h" +#include "znc.h" CListener::~CListener() { if (m_pListener) diff --git a/Listener.h b/Listener.h index 076a51a6..ea303d7a 100644 --- a/Listener.h +++ b/Listener.h @@ -10,7 +10,7 @@ #define _LISTENER_H #include "zncconfig.h" -#include "znc.h" +#include "Socket.h" // Forward Declarations class CRealListener; diff --git a/modules/certauth.cpp b/modules/certauth.cpp index 6e6beb96..337a51a1 100644 --- a/modules/certauth.cpp +++ b/modules/certauth.cpp @@ -11,6 +11,7 @@ #include "Modules.h" #include "User.h" #include "Listener.h" +#include "znc.h" class CSSLClientCertMod : public CGlobalModule { public: