Source: sysvinit Version: 2.88dsf-45 Severity: important Tags: patch User: [email protected] Usertags: hurd
Hi, sysvinit fails to build from source on GNU/Hurd due to a missing definition of MAXSYMLINKS. The updated patch: 30_killall5_hurd.patch use sysconf() to define that value at run time. Thanks!
Purpose: Hurd is missing PATH_MAX, provide workaround. Authour: Werner Fink Fixes: ? Status: Not send upstream --- a/src/killall5.c +++ b/src/killall5.c @@ -43,6 +43,7 @@ #include <dirent.h> #include <errno.h> #include <getopt.h> +#include <limits.h> #include <mntent.h> #include <stdarg.h> #include <stdio.h> @@ -59,6 +60,18 @@ char *Version = "@(#)killall5 2.86 31-Jul-2004 [email protected]"; +#ifndef PATH_MAX +# ifdef MAXPATHLEN +# define PATH_MAX MAXPATHLEN +# else +# define PATH_MAX 2048 +# endif +#endif + +#ifndef MAXSYMLINKS +#define MAXSYMLINKS sysconf(_SC_SYMLOOP_MAX) +#endif + #define STATNAMELEN 15 #define DO_NETFS 2 #define DO_STAT 1
_______________________________________________ Pkg-sysvinit-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel

