diff options
author | George France <france@crl.dec.com> | 2000-04-03 07:21:06 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-04-03 01:21:06 -0600 |
commit | 2201601ab661e9dbbaa0a25cf2d28e08d4347a9f (patch) | |
tree | ae80a4fd48980d5447614e49660085bf7c78ef7d /libchill | |
parent | 478a4495af4d5710f348ad7e8d1fc84adea80537 (diff) | |
download | gcc-2201601ab661e9dbbaa0a25cf2d28e08d4347a9f.zip gcc-2201601ab661e9dbbaa0a25cf2d28e08d4347a9f.tar.gz gcc-2201601ab661e9dbbaa0a25cf2d28e08d4347a9f.tar.bz2 |
* basicio.c (PATH_MAX): Always provide a definition.
From-SVN: r32876
Diffstat (limited to 'libchill')
-rw-r--r-- | libchill/ChangeLog | 4 | ||||
-rw-r--r-- | libchill/basicio.c | 16 |
2 files changed, 13 insertions, 7 deletions
diff --git a/libchill/ChangeLog b/libchill/ChangeLog index cf6c965..7fefa5b 100644 --- a/libchill/ChangeLog +++ b/libchill/ChangeLog @@ -1,3 +1,7 @@ +Mon Apr 3 01:20:50 2000 George France <france@crl.dec.com> + + * basicio.c (PATH_MAX): Always provide a definition. + Wed Oct 27 01:13:12 1999 Alan Modra <alan@SPRI.Levels.UniSA.Edu.Au> * Makefile.in (config.status): Fix leading whitespace. diff --git a/libchill/basicio.c b/libchill/basicio.c index 7ff71d9..79fd9cb 100644 --- a/libchill/basicio.c +++ b/libchill/basicio.c @@ -39,13 +39,15 @@ Boston, MA 02111-1307, USA. */ #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 +# ifdef _POSIX_PATH_MAX +# define PATH_MAX _POSIX_PATH_MAX +# else +# ifdef MAXPATHLEN +# define PATH_MAX MAXPATHLEN +# else +# define PATH_MAX 1024 +# endif +# endif #endif static |