Source: dovecot Version: 2.1.7-2 Severity: important Tags: patch Usertags: hurd User: [email protected]
Hi, the inlined patch below enables a successful build of dovecot for GNU/Hurd. Since neither PATH_MAX nor PIPE_BUF is defined for Hurd, scaled versions of the corresponding _POSIX_* definitions are used. The number of entries of PATH_MAX are too many to make dynamic string allocation unless upstream is interested. Regarding PIPE_BUF size I don't know which value to use so the same as for GNU/Linux is chosen (8*512=4096). -- a/src/lib/lib.h 2011-12-13 12:35:29.000000000 +0100 +++ b/src/lib/lib.h 2012-08-29 15:42:34.000000000 +0200 @@ -14,6 +14,12 @@ #endif #include <stdarg.h> /* va_list is used everywhere */ #include <limits.h> /* INT_MAX, etc. */ +#if (!defined(PIPE_BUF) && defined(_POSIX_PIPE_BUF)) +#define PIPE_BUF 8*_POSIX_PIPE_BUF +#endif +#if (!defined(PATH_MAX) && defined(_POSIX_PATH_MAX)) +#define PATH_MAX 16*_POSIX_PATH_MAX +#endif #include <errno.h> /* error checking is good */ #include <sys/types.h> /* many other includes want this */ -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

