diff options
-rw-r--r-- | lib.h | 4 | ||||
-rw-r--r-- | pre-process.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -44,6 +44,10 @@ #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 // Hurd doesn't define this +#endif + struct position { unsigned int type:6, diff --git a/pre-process.c b/pre-process.c index ee0e9954..7a1478f6 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(struct position pos, const char *path, const char *filename, int flen, struct token **where, const char **next_path) { int fd; |