summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Burchell <viroteck@viroteck.net>2012-05-23 07:56:37 -0700
committerRobin Burchell <viroteck@viroteck.net>2012-05-23 07:56:37 -0700
commit13f0d6735fbf6893463d6a55eb7af2a8c029c96c (patch)
tree700ee0f1caa85a573a15bbdce8ade2f9dc0c809a
parent196b9a9fb6878bdf686ab4e3bbdef2d1c26fe366 (diff)
parentcfbb5630c580a931494cbe131fec419646f99353 (diff)
Merge pull request #139 from SaberUK/insp20-unistd-windows
[2.0] Fix compile error caused by unistd.h not existing on Windows.
-rw-r--r--include/inspircd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 8a1c3455d..cabb24aa0 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -55,7 +55,9 @@
#include <cstring>
#include <climits>
#include <cstdio>
+#ifndef WIN32
#include <unistd.h>
+#endif
#include <sstream>
#include <string>