diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-20 10:49:53 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-11-20 10:49:53 +0000 |
commit | cd489dd31951e6e973e4158b2965fbc96be084ab (patch) | |
tree | 21e4015b3ab013a73f064d4132d531c41f7b4847 /libchill/basicio.c | |
parent | 1f201d0d113767b00d2a40db1f2fdc81cc6441f7 (diff) | |
download | gcc-cd489dd31951e6e973e4158b2965fbc96be084ab.tar.gz |
* basicio.c (PATH_MAX): Define only to _POSIX_PATH_MAX if that is
defined. Otherwise, try MAXPATHLEN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23736 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libchill/basicio.c')
-rw-r--r-- | libchill/basicio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libchill/basicio.c b/libchill/basicio.c index 7b71a084c1d..3000b0ab3ec 100644 --- a/libchill/basicio.c +++ b/libchill/basicio.c @@ -38,7 +38,13 @@ #include "fileio.h" #ifndef PATH_MAX +#ifdef _POSIX_PATH_MAX #define PATH_MAX _POSIX_PATH_MAX +#else +#ifdef MAXPATHLEN +#define PATH_MAX MAXPATHLEN +#endif +#endif #endif static |