Subversion Repositories

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

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

#!/bin/sh /usr/share/dpatch/dpatch-run
## 10_misplaced_MAXPATHLEN.dpatch by Samuel Thibault <samuel.thibault@ens-lyon.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Move reserve MAXPATHLEN definition up.

@DPATCH@
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);