This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Remove MAXPATHLEN definition for Cygwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]