summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-10-18 08:30:29 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-10-18 08:30:29 +0000
commit05b637e340d536f7c0d3aba51659bef31d191668 (patch)
tree676a895aa69a4d72acdce63ac21729f43bc992ba /newlib/libc/include/sys
parent9240d3c82430948615ded9c8d2731ad4f1eaedf2 (diff)
downloadcygnal-05b637e340d536f7c0d3aba51659bef31d191668.tar.gz
cygnal-05b637e340d536f7c0d3aba51659bef31d191668.tar.bz2
cygnal-05b637e340d536f7c0d3aba51659bef31d191668.zip
* 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.
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/param.h3
-rw-r--r--newlib/libc/include/sys/unistd.h4
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