summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-11 15:37:31 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-11 15:37:31 +0000
commitf8d9c513174926eae5b0545c56c310c90f295132 (patch)
tree491c6d651a3edf163a57f4dc03c17c80f4c81de0
parent4e599dd4fbfe5abc0d60a05008344e35e6bc870d (diff)
Pull in limits.h to fix PATH_MAX problems, thanks to Uli Slachter (psychon).. Not sure why this wouldn't work anyway, as we define it manually, but..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9954 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/inspircd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 798da0613..6ddc9bf9c 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -61,8 +61,9 @@
#include "configreader.h"
#include "inspstring.h"
#include "protocol.h"
-
+#include <limits.h> // required for PATH_MAX under gcc 4.3, may break windows
#ifndef PATH_MAX
+#warning Potentially broken system, PATH_MAX undefined
#define PATH_MAX 4096
#endif