(important) cyrus-imapd 2.4.16 released

OBATA Akio obata at lins.jp
Thu Apr 19 08:49:15 EDT 2012


On Thu, 19 Apr 2012 21:19:32 +0900, Dennis Davis <D.H.Davis at bath.ac.uk> wrote:

> Got the following error when compiling this on OpenBSD5.0:
>
> util.c: In function 'dir_hash_c':
> util.c:284: error: 'UINT32_MAX' undeclared (first use in this function)
> util.c:284: error: (Each undeclared identifier is reported only once
> util.c:284: error: for each function it appears in.)
> *** Error code 1
>
> Quickly fixed by applying the following patch:
>
>
> --- lib/util.c.orig     Thu Apr 19 10:39:51 2012
> +++ lib/util.c  Thu Apr 19 12:56:31 2012
> @@ -62,6 +62,10 @@
>  #include <sys/socket.h>
>  #include <errno.h>
>+#ifdef __OpenBSD__
> +#include <stdint.h>
> +#endif /* __OpenBSD__ */
> +
>  #include "exitcodes.h"
>  #include "util.h"
>  #include "xmalloc.h"
>
>
> Although I'm sure this isn't the preferred way to do it :-(

or use BIT32_MAX (defined in lib/util.h) instead of UNIT32_MAX?

-- 
OBATA Akio / obata at lins.jp


More information about the Info-cyrus mailing list