Subversion Repositories pike

Compare Revisions

Ignore whitespace Rev 288 → Rev 287

/trunk/debian/patches/series
5,6 → 5,7
smartlink_verbose.patch
no_dump_modules.patch
dynamic_module_makefile.in-libgcc.patch
misplaced_MAXPATHLEN.patch
pthread_stub.patch
unbreak_cross_compilation.patch
dump_timeout.patch
/trunk/debian/patches/misplaced_MAXPATHLEN.patch
0,0 → 1,26
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: Move reserve MAXPATHLEN definition up.
 
--- a/src/modules/_Stdio/efuns.c
+++ b/src/modules/_Stdio/efuns.c
@@ -89,6 +89,10 @@ LINKFUNC(BOOL, movefileex, (
#endif /* __NT__ */
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 32768
+#endif
+
struct array *encode_stat(PIKE_STAT_T *s)
{
struct array *a;
@@ -1466,9 +1470,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);