aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--lib.h4
-rw-r--r--pre-process.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib.h b/lib.h
index e767840c..17b17a72 100644
--- a/lib.h
+++ b/lib.h
@@ -43,6 +43,10 @@
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
#endif
+#ifndef PATH_MAX
+#define PATH_MAX 4096 // Hurd doesn't define this
+#endif
+
extern int verbose, optimize_level, optimize_size, preprocessing;
extern int die_if_error;
extern int repeat_phase;
diff --git a/pre-process.c b/pre-process.c
index 38167802..ca613018 100644
--- a/pre-process.c
+++ b/pre-process.c
@@ -890,10 +890,6 @@ static void set_stream_include_path(struct stream *stream)
includepath[0] = path;
}
-#ifndef PATH_MAX
-#define PATH_MAX 4096 // for Hurd where it's not defined
-#endif
-
static int try_include(const char *path, const char *filename, int flen, struct token **where, const char **next_path)
{
int fd;