* include/limits.h (PATH_MAX): Guard with #ifndef __STRICT_ANSI__.

* include/sys/param.h (MAXPATHLEN): Make sure PATH_MAX is defined.
This commit is contained in:
Earnie Boyd 2012-08-03 19:16:38 +00:00
parent d8dbfe9518
commit eb9dc9d068
3 changed files with 9 additions and 1 deletions

View File

@ -20,6 +20,8 @@
(_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto. (_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto.
(_wrename, _wremove, _wperror, _wpopen): Ditto. (_wrename, _wremove, _wperror, _wpopen): Ditto.
(_lock_file, _unlock_file): Declare. (_lock_file, _unlock_file): Declare.
* include/limits.h (PATH_MAX): Guard with #ifndef __STRICT_ANSI__.
* include/sys/param.h (MAXPATHLEN): Make sure PATH_MAX is defined.
2012-08-01 Earnie Boyd <earnie@users.sourceforge.net> 2012-08-01 Earnie Boyd <earnie@users.sourceforge.net>

View File

@ -29,7 +29,9 @@
* are semantically identical, with a limit of 259 characters for the * are semantically identical, with a limit of 259 characters for the
* path name, plus one for a terminating NUL, for a total of 260. * path name, plus one for a terminating NUL, for a total of 260.
*/ */
#define PATH_MAX 260 #ifndef __STRICT_ANSI__
# define PATH_MAX 260
#endif
/* /*
* Characteristics of the char data type. * Characteristics of the char data type.

View File

@ -17,6 +17,10 @@
#define LITTLE_ENDIAN 1234 #define LITTLE_ENDIAN 1234
#define BYTE_ORDER LITTLE_ENDIAN #define BYTE_ORDER LITTLE_ENDIAN
#ifdef PATH_MAX
#define MAXPATHLEN PATH_MAX #define MAXPATHLEN PATH_MAX
#else
#define MAXPATHLEN 260
#endif
#endif #endif