Subversion Repositories

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

Rev 126 | 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
 
62 holmgren 4
diff -urNad pike7.8-7.8.316~/src/modules/files/efuns.c pike7.8-7.8.316/src/modules/files/efuns.c
5
--- pike7.8-7.8.316~/src/modules/files/efuns.c  2009-08-15 01:01:23.000000000 +0200
6
+++ pike7.8-7.8.316/src/modules/files/efuns.c   2009-08-15 01:02:21.000000000 +0200
7
@@ -109,6 +109,10 @@
3 magnus 8
 
62 holmgren 9
 #endif /* __NT__ */
3 magnus 10
 
11
+#ifndef MAXPATHLEN
12
+#define MAXPATHLEN 32768
13
+#endif
14
+
15
 struct array *encode_stat(PIKE_STAT_T *s)
16
 {
17
   struct array *a;
62 holmgren 18
@@ -1443,9 +1447,6 @@
3 magnus 19
     size*=2;
20
   } while (size < 10000);
21
 #else
22
-#ifndef MAXPATHLEN
23
-#define MAXPATHLEN 32768
24
-#endif
25
   tmp=xalloc(MAXPATHLEN+1);
26
   THREADS_ALLOW_UID();
27
   e = getwd(tmp);