aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-05-07 19:50:25 +0100
committerGravatar Sadie Powell2022-05-07 20:18:15 +0100
commit1a5af295be54ba5666befa6e01cd3043f73cd891 (patch)
tree867ea21210a921c7f33822b589b6197306bfded6 /src/configreader.cpp
parentGet rid of entrypoint, specify the main function name directly. (diff)
Move unistd out of the global compat header.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index f4061861e..94c1ca195 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -34,6 +34,10 @@
#include <filesystem>
#include <iostream>
+#ifndef _WIN32
+# include <unistd.h>
+#endif
+
#include "inspircd.h"
#include "xline.h"
#include "listmode.h"