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 or PIPE_BUF are defined for Hurd, scaled versions of the corresponding _POSIX_* versions are used. The number of entries of PATH_MAX are too many to make dynamic unless upstream is interested. Regarding PIPE_BUF size I don't know (feedback needed from fellow Hurders) -- 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(__USE_POSIX)) +#define PIPE_BUF 8*_POSIX_PIPE_BUF +#endif +#if (!defined(PATH_MAX) && defined(__USE_POSIX)) +#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]

