summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileutils.cpp4
-rw-r--r--src/inspircd.cpp1
-rw-r--r--src/modules.cpp4
3 files changed, 4 insertions, 5 deletions
diff --git a/src/fileutils.cpp b/src/fileutils.cpp
index d5e1e5839..6c98ba300 100644
--- a/src/fileutils.cpp
+++ b/src/fileutils.cpp
@@ -21,6 +21,10 @@
#include <fstream>
+#ifndef _WIN32
+# include <dirent.h>
+#endif
+
FileReader::FileReader(const std::string& filename)
{
Load(filename);
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index c5d958f87..29cd8acf2 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -30,7 +30,6 @@
#include <signal.h>
#ifndef _WIN32
- #include <dirent.h>
#include <unistd.h>
#include <sys/resource.h>
#include <dlfcn.h>
diff --git a/src/modules.cpp b/src/modules.cpp
index 67ebc3439..444e90645 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -28,10 +28,6 @@
#include "exitcodes.h"
#include <iostream>
-#ifndef _WIN32
- #include <dirent.h>
-#endif
-
static insp::intrusive_list<dynamic_reference_base>* dynrefs = NULL;
void dynamic_reference_base::reset_all()