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

Bug#686931: dovecot: FTBFS on hurd-i386

Source: dovecot
Version: 2.1.7-2
Severity: important
Tags: patch
Usertags: hurd
User: debian-hurd@lists.debian.org

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

-- 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 @@
 #include <stdarg.h> /* va_list is used everywhere */
 #include <limits.h> /* INT_MAX, etc. */
+#if (!defined(PIPE_BUF) && defined(_POSIX_PIPE_BUF))
+#if (!defined(PATH_MAX) && defined(_POSIX_PATH_MAX))
 #include <errno.h> /* error checking is good */
 #include <sys/types.h> /* many other includes want this */

Reply to: