* libc/include/sys/unistd.h (MAXPATHLEN): Delete.

* libc/include/sys/param.h (MAXPATHLEN): Define.
	* libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise.
	* libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.
This commit is contained in:
Corinna Vinschen
2013-10-18 08:30:29 +00:00
parent 9240d3c824
commit 05b637e340
5 changed files with 11 additions and 6 deletions

View File

@ -156,9 +156,7 @@
* It should be set high enough to allow all legitimate uses, but halt
* infinite loops reasonably quickly.
*/
#if !defined(__rtems__)
#define MAXPATHLEN PATH_MAX
#endif
#define MAXSYMLINKS 32
/* Bit map related macros. */