[Dovecot] compile with dietlibc
Timo Sirainen
tss at iki.fi
Tue Aug 5 22:44:39 EEST 2003
On Tue, 2003-08-05 at 21:29, Jens Gutzeit wrote:
> compat.h:30: conflicting types for `uint_fast32_t'
> /opt/diet/include/stdint.h:25: previous declaration of `uint_fast32_t'
>
> I've solved this in a dirty way, but is this something which could be fixed in
> the future?
Try this patch:
Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.142
diff -u -r1.142 configure.in
--- configure.in 2 Aug 2003 17:38:15 -0000 1.142
+++ configure.in 5 Aug 2003 19:43:05 -0000
@@ -478,13 +478,19 @@
AC_MSG_RESULT($i_cv_type_$1)
])
-AC_CHECKTYPE2(uintmax_t, [#include <inttypes.h>])
+dnl some systems don't have stdint.h, but still have some of the types
+dnl defined elsewhere
+AC_CHECK_HEADER(stdint.h, [
+ stdint_include="#include <stdint.h>"
+])
+
+AC_CHECKTYPE2(uintmax_t, [$stdint_include])
if test $i_cv_type_uintmax_t = yes; then
AC_DEFINE(HAVE_UINTMAX_T,, Define if you have uintmax_t (C99 type))
fi
dnl use separate check, eg. Solaris 8 has uintmax_t but not uint_fast32_t
-AC_CHECKTYPE2(uint_fast32_t, [#include <inttypes.h>])
+AC_CHECKTYPE2(uint_fast32_t, [$stdint_include])
if test $i_cv_type_uint_fast32_t = yes; then
AC_DEFINE(HAVE_UINT_FAST32_T,, Define if you have uint_fast32_t (C99 type))
fi
More information about the dovecot
mailing list