diff options
author | Christopher James Halse Rogers <christopher.halse.rogers@canonical.com> | 2011-03-09 11:17:27 +1100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-03-14 13:42:55 -0400 |
commit | d17a9fb8414becf6a8998041df68f209f9222b2b (patch) | |
tree | bb8158a3323a7529de9fc7794589d6716317f4ed /hw/xfree86/parser | |
parent | 021393d1b8bcc9ff2ff5deb2306360e6b0afa1c6 (diff) |
Consolidate all the PATH_MAX handling into misc.h
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Diffstat (limited to 'hw/xfree86/parser')
-rw-r--r-- | hw/xfree86/parser/scan.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c index e4fce309f..1cff3bc5c 100644 --- a/hw/xfree86/parser/scan.c +++ b/hw/xfree86/parser/scan.c @@ -77,18 +77,13 @@ #undef _POSIX_SOURCE #endif /* _POSIX_SOURCE */ -#if !defined(PATH_MAX) -#if defined(MAXPATHLEN) -#define PATH_MAX MAXPATHLEN -#else -#define PATH_MAX 1024 -#endif /* MAXPATHLEN */ -#endif /* !PATH_MAX */ - #if !defined(MAXHOSTNAMELEN) #define MAXHOSTNAMELEN 32 #endif /* !MAXHOSTNAMELEN */ +/* For PATH_MAX */ +#include "misc.h" + #include "Configint.h" #include "xf86tokens.h" |