Bug#434581: pike7.6: FTBFS on hurd-i386
Package: pike7.6
Version: 7.6.93-3
Severity: important
Tags: patch
Hi,
pike7.6 FTBFS on hurd-i386 because of unprotected usage of MAXPATHLEN ;
here is a patch.
Samuel
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-xen
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
--
Samuel Thibault <samuel.thibault@ens-lyon.org>
+#if defined(__alpha__) && defined(CONFIG_PCI)
+ /*
+ * The meaning of life, the universe, and everything. Plus
+ * this makes the year come out right.
+ */
+ year -= 42;
+#endif
(From the patch for 1.3.2: (kernel/time.c), submitted by Marcus Meissner)
--- src/modules/files/efuns.c.orig 2007-07-24 23:08:26.932458000 +0000
+++ src/modules/files/efuns.c 2007-07-24 23:09:58.626801000 +0000
@@ -106,6 +106,10 @@
#endif
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 32768
+#endif
+
struct array *encode_stat(PIKE_STAT_T *s)
{
struct array *a;
@@ -1113,9 +1117,6 @@
size*=2;
} while (size < 10000);
#else
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 32768
-#endif
tmp=xalloc(MAXPATHLEN+1);
THREADS_ALLOW_UID();
e = getwd(tmp);
Reply to: