Subversion Repositories

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

Rev 116 | Rev 134 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
116 holmgren 1
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
2
Subject: Move reserve MAXPATHLEN definition up.
3 magnus 3
 
4
@DPATCH@
62 holmgren 5
diff -urNad pike7.8-7.8.316~/src/modules/files/efuns.c pike7.8-7.8.316/src/modules/files/efuns.c
6
--- pike7.8-7.8.316~/src/modules/files/efuns.c  2009-08-15 01:01:23.000000000 +0200
7
+++ pike7.8-7.8.316/src/modules/files/efuns.c   2009-08-15 01:02:21.000000000 +0200
8
@@ -109,6 +109,10 @@
3 magnus 9
 
62 holmgren 10
 #endif /* __NT__ */
3 magnus 11
 
12
+#ifndef MAXPATHLEN
13
+#define MAXPATHLEN 32768
14
+#endif
15
+
16
 struct array *encode_stat(PIKE_STAT_T *s)
17
 {
18
   struct array *a;
62 holmgren 19
@@ -1443,9 +1447,6 @@
3 magnus 20
     size*=2;
21
   } while (size < 10000);
22
 #else
23
-#ifndef MAXPATHLEN
24
-#define MAXPATHLEN 32768
25
-#endif
26
   tmp=xalloc(MAXPATHLEN+1);
27
   THREADS_ALLOW_UID();
28
   e = getwd(tmp);