summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuillaume Delacour <gui@iroqwa.org>2012-04-16 08:20:46 +0200
committerRobin Burchell <robin+git@viroteck.net>2012-04-16 08:20:46 +0200
commit937c562ce4bfda96386ec28db82b3b4ef5b7b21d (patch)
tree8ea33b56beae936030f86b9353c02dcf024df3f6 /include
parent76619990ad82501afc95d0c76f057a2841862de9 (diff)
Fix compilation with GCC 4.7.
GCC 4.7 headers no longer implicitly include unistd.h in many places, see http://gcc.gnu.org/gcc-4.7/porting_to.html Fixes #65
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index d17920fd3..abe568011 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -43,6 +43,7 @@
#include <cstring>
#include <climits>
#include <cstdio>
+#include <unistd.h>
#include <sstream>
#include <string>