Re: (important) cyrus-imapd 2.4.16 released

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

 



On Thu, 19 Apr 2012 21:19:32 +0900, Dennis Davis <D.H.Davis@xxxxxxxxxx> 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@xxxxxxx
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux