[distcc] Re: Bug#219600: distcc: Patch for GNU/Hurd
Martin Pool
mbp at samba.org
Mon Nov 17 03:01:46 GMT 2003
On 7 Nov 2003, Santiago Vila <sanvila at unex.es> wrote:
> Package: distcc
> Version: 2.10.1-2
> Tags: patch, upstream
>
> There is no MAXPATHLEN in GNU/Hurd, so this package does not compile
> from source.
>
> The "right" fix for this would be to modify the program so that no
> MAXPATHLEN is assumed (doing dynamic allocation of the required space),
> but for now this patch should be enough:
Thanks, a modified version was taken into upstream for 2.12.
>
> diff -ru distcc-2.10.1.orig/src/serve.c distcc-2.10.1/src/serve.c
> +++ distcc-2.10.1/src/serve.c 2003-11-07 16:22:09.000000000 +0100
> @@ -70,6 +70,10 @@
> #endif /* HAVE_SYS_SIGNAL_H */
> #include <sys/param.h>
>
> +#ifndef MAXPATHLEN
> +#define MAXPATHLEN 4096
> +#endif
> +
> #include "distcc.h"
> #include "trace.h"
> #include "io.h"
> diff -ru distcc-2.10.1.orig/src/util.c distcc-2.10.1/src/util.c
> +++ distcc-2.10.1/src/util.c 2003-11-07 16:21:14.000000000 +0100
> @@ -40,6 +40,10 @@
>
> #include <sys/param.h>
>
> +#ifndef MAXPATHLEN
> +#define MAXPATHLEN 4096
> +#endif
> +
> #include "distcc.h"
> #include "trace.h"
> #include "io.h"
>
> Thanks.
>
--
Martin
linux.conf.au -- Adelaide, January 2004
More information about the distcc
mailing list