Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 116 | Blame | Compare with Previous | Last modification | View Log | RSS feed

From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: Move reserve MAXPATHLEN definition up.

@DPATCH@
--- a/src/modules/files/efuns.c
+++ b/src/modules/files/efuns.c
@@ -118,6 +118,10 @@ LINKFUNC(BOOL, movefileex, (
 
 #endif /* __NT__ */
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 32768
+#endif
+
 struct array *encode_stat(PIKE_STAT_T *s)
 {
   struct array *a;
@@ -1520,9 +1524,6 @@ void f_getcwd(INT32 args)
     size*=2;
   } while (size < 10000);
 #else
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 32768
-#endif
   tmp=xalloc(MAXPATHLEN+1);
   THREADS_ALLOW_UID();
   e = getwd(tmp);