dovecot-1.1: FreeBSD compile warning fix.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 13 10:07:15 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/337307703198
changeset: 7663:337307703198
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 13 10:07:09 2008 +0300
description:
FreeBSD compile warning fix.

diffstat:

3 files changed, 7 insertions(+), 1 deletion(-)
configure.in                   |    2 +-
src/lib/mempool-system-clean.c |    3 +++
src/lib/mempool-system.c       |    3 +++

diffs (38 lines):

diff -r 4964175fc7f8 -r 337307703198 configure.in
--- a/configure.in	Fri Jun 13 10:05:55 2008 +0300
+++ b/configure.in	Fri Jun 13 10:07:09 2008 +0300
@@ -19,7 +19,7 @@ AC_CHECK_HEADERS(strings.h stdint.h unis
   sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \
   sys/quota.h sys/fs/ufs_quota.h ufs/ufs/quota.h jfs/quota.h \
   mntent.h sys/mnttab.h sys/event.h sys/time.h sys/mkdev.h linux/dqblk_xfs.h \
-  xfs/xqm.h sasl.h sasl/sasl.h execinfo.h ucontext.h)
+  xfs/xqm.h sasl.h sasl/sasl.h execinfo.h ucontext.h malloc_np.h)
 
 AC_ARG_ENABLE(ipv6,
 [  --enable-ipv6           Enable IPv6 support (auto)],
diff -r 4964175fc7f8 -r 337307703198 src/lib/mempool-system-clean.c
--- a/src/lib/mempool-system-clean.c	Fri Jun 13 10:05:55 2008 +0300
+++ b/src/lib/mempool-system-clean.c	Fri Jun 13 10:07:09 2008 +0300
@@ -8,6 +8,9 @@
 
 #ifdef HAVE_MALLOC_H
 #  include <malloc.h>
+#endif
+#ifdef HAVE_MALLOC_NP_H
+#  include <malloc_np.h> /* for malloc_usable_size() with FreeBSD */
 #endif
 #include <stdlib.h>
 
diff -r 4964175fc7f8 -r 337307703198 src/lib/mempool-system.c
--- a/src/lib/mempool-system.c	Fri Jun 13 10:05:55 2008 +0300
+++ b/src/lib/mempool-system.c	Fri Jun 13 10:07:09 2008 +0300
@@ -8,6 +8,9 @@
 #include <stdlib.h>
 #ifdef HAVE_MALLOC_H
 #  include <malloc.h>
+#endif
+#ifdef HAVE_MALLOC_NP_H
+#  include <malloc_np.h> /* for malloc_usable_size() with FreeBSD */
 #endif
 
 #ifdef HAVE_GC_GC_H


More information about the dovecot-cvs mailing list