]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
FreeBSD compile warning fix.
authorTimo Sirainen <tss@iki.fi>
Fri, 13 Jun 2008 07:07:09 +0000 (10:07 +0300)
committerTimo Sirainen <tss@iki.fi>
Fri, 13 Jun 2008 07:07:09 +0000 (10:07 +0300)
--HG--
branch : HEAD

configure.in
src/lib/mempool-system-clean.c
src/lib/mempool-system.c

index 6c6d8ea11ef7f2a0bc36041735c964168449b0e2..bdc0e80299c4aa5927047fa655e900cba92d0031 100644 (file)
@@ -19,7 +19,7 @@ AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h malloc.h inttypes.h \
   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)],
index 6395d5cf4c6de9b612116acd6ecad719ed24474c..ccd66fb5f4b213d7abb64545998b33bb4b25eb7e 100644 (file)
@@ -9,6 +9,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>
 
 #ifdef HAVE_GC_GC_H
index 9fbcb6348eef2354f310a52662ea9fb43eed1be5..9cadb88452fa9e8f3086de7407baea5722794776 100644 (file)
@@ -9,6 +9,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
 
 #ifdef HAVE_GC_GC_H
 #  include <gc/gc.h>