This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] Remove MAXPATHLEN definition for Cygwin
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Thu, 8 Nov 2007 17:20:15 +0100
- Subject: [patch] Remove MAXPATHLEN definition for Cygwin
- Reply-to: newlib at sourceware dot org
Hi,
I just applied the below patch. It removes the definition of
MAXPATHLEN for Cygwin from sys/unistd.h. MAXPATHLEN isn't defined
in POSIX anyway (which uses PATH_MAX), and the BSD definition
belongs to sys/param.h, which is provided by Cygwin itself.
Corinna
* libc/include/sys/unistd.h: Remove Cygwin definition of MAXPATHLEN.
Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.62
diff -u -p -r1.62 unistd.h
--- libc/include/sys/unistd.h 20 Jun 2007 21:49:06 -0000 1.62
+++ libc/include/sys/unistd.h 8 Nov 2007 16:15:38 -0000
@@ -443,10 +443,7 @@ int _EXFUN(symlink, (const char *__n
#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 17
#endif
-/* FIXME: This is temporary until winsup gets sorted out. */
-#ifdef __CYGWIN__
-#define MAXPATHLEN (260 - 1 /* NUL */)
-#else
+#ifndef __CYGWIN__
# define MAXPATHLEN 1024
#endif
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat