From: amylaar Date: Fri, 20 Nov 1998 10:49:53 +0000 (+0000) Subject: * basicio.c (PATH_MAX): Define only to _POSIX_PATH_MAX if that is X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd489dd31951e6e973e4158b2965fbc96be084ab;p=platform%2Fupstream%2Flinaro-gcc.git * 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 --- diff --git a/libchill/ChangeLog b/libchill/ChangeLog index 0211502..8d0a95c 100644 --- a/libchill/ChangeLog +++ b/libchill/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 20 18:48:34 1998 J"orn Rennecke + + * basicio.c (PATH_MAX): Define only to _POSIX_PATH_MAX if that is + defined. Otherwise, try MAXPATHLEN. + Thu Oct 22 14:37:35 1998 Kaveh R. Ghazi * configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir). diff --git a/libchill/basicio.c b/libchill/basicio.c index 7b71a08..3000b0a 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