* 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:
		| @@ -20,6 +20,8 @@ | ||||
| 	(_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto. | ||||
| 	(_wrename, _wremove, _wperror, _wpopen): Ditto. | ||||
| 	(_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> | ||||
|  | ||||
|   | ||||
| @@ -29,7 +29,9 @@ | ||||
|  *       are semantically identical, with a limit of 259 characters for the | ||||
|  *       path name, plus one for a terminating NUL, for a total of 260. | ||||
|  */ | ||||
| #ifndef __STRICT_ANSI__ | ||||
| # define PATH_MAX	260 | ||||
| #endif | ||||
|  | ||||
| /* | ||||
|  * Characteristics of the char data type. | ||||
|   | ||||
| @@ -17,6 +17,10 @@ | ||||
| #define LITTLE_ENDIAN	1234 | ||||
| #define BYTE_ORDER	LITTLE_ENDIAN | ||||
|  | ||||
| #ifdef PATH_MAX | ||||
| #define MAXPATHLEN PATH_MAX | ||||
| #else | ||||
| #define MAXPATHLEN 260 | ||||
| #endif | ||||
|  | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user