Subversion Repositories

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

Rev 126 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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

diff -urNad pike7.8-7.8.316~/src/modules/files/efuns.c pike7.8-7.8.316/src/modules/files/efuns.c
--- pike7.8-7.8.316~/src/modules/files/efuns.c  2009-08-15 01:01:23.000000000 +0200
+++ pike7.8-7.8.316/src/modules/files/efuns.c   2009-08-15 01:02:21.000000000 +0200
@@ -109,6 +109,10 @@
 
 #endif /* __NT__ */
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 32768
+#endif
+
 struct array *encode_stat(PIKE_STAT_T *s)
 {
   struct array *a;
@@ -1443,9 +1447,6 @@
     size*=2;
   } while (size < 10000);
 #else
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 32768
-#endif
   tmp=xalloc(MAXPATHLEN+1);
   THREADS_ALLOW_UID();
   e = getwd(tmp);