diff options
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/sys/param.h | 3 | ||||
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/newlib/libc/include/sys/param.h b/newlib/libc/include/sys/param.h index 7e8762a65..ef203d3ec 100644 --- a/newlib/libc/include/sys/param.h +++ b/newlib/libc/include/sys/param.h @@ -6,6 +6,7 @@ # define _SYS_PARAM_H #include <sys/config.h> +#include <sys/syslimits.h> #include <machine/endian.h> #include <machine/param.h> @@ -19,6 +20,8 @@ # define PATHSIZE (1024) #endif +#define MAXPATHLEN PATH_MAX + #define MAX(a,b) ((a) > (b) ? (a) : (b)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index a5f66c0b7..f1aacfa77 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -500,10 +500,6 @@ int _EXFUN(unlinkat, (int, const char *, int)); #define _CS_V6_ENV _CS_V7_ENV #endif -#ifndef __CYGWIN__ -# define MAXPATHLEN 1024 -#endif - #ifdef __cplusplus } #endif |