[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#321350: gcc-4.0: FTBFS on hurd-i386: MAXPATHLEN issue in gcc/ada/adaint.c



Package: gcc-4.0
Version: 4.0.1-3
Severity: important
Tags: patch

Hi,

since you decided not to disable gnat for hurd-i386, another build
failure has appeared in the ada code due to the unconditionalized usage
of MAXPATHLEN.  A bug has been filed upstream (#23187), and a crude fix
(unsuitable for inclusion upstream) as an addition to
hurd-changes.dpatch is attached.


cheers,

Michael

-- 
Michael Banck
Debian Developer
mbanck@debian.org
http://www.advogato.org/person/mbanck/diary.html
--- gcc/ada/adaint.c.orig	2005-08-01 23:10:02.000000000 +0200
+++ gcc/ada/adaint.c	2005-08-01 23:11:10.000000000 +0200
@@ -261,6 +261,10 @@
 #include <sys/param.h>
 #endif
 
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
 #define GNAT_MAX_PATH_LEN MAXPATHLEN
 
 #endif

Reply to: