From: Timo Sirainen Date: Fri, 13 Jun 2008 07:07:09 +0000 (+0300) Subject: FreeBSD compile warning fix. X-Git-Tag: 1.2.alpha1~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=816cfab0f4dc6cfe0a644460c21bcd3c7f2d3e53;p=thirdparty%2Fdovecot%2Fcore.git FreeBSD compile warning fix. --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 6c6d8ea11e..bdc0e80299 100644 --- a/configure.in +++ b/configure.in @@ -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)], diff --git a/src/lib/mempool-system-clean.c b/src/lib/mempool-system-clean.c index 6395d5cf4c..ccd66fb5f4 100644 --- a/src/lib/mempool-system-clean.c +++ b/src/lib/mempool-system-clean.c @@ -9,6 +9,9 @@ #ifdef HAVE_MALLOC_H # include #endif +#ifdef HAVE_MALLOC_NP_H +# include /* for malloc_usable_size() with FreeBSD */ +#endif #include #ifdef HAVE_GC_GC_H diff --git a/src/lib/mempool-system.c b/src/lib/mempool-system.c index 9fbcb6348e..9cadb88452 100644 --- a/src/lib/mempool-system.c +++ b/src/lib/mempool-system.c @@ -9,6 +9,9 @@ #ifdef HAVE_MALLOC_H # include #endif +#ifdef HAVE_MALLOC_NP_H +# include /* for malloc_usable_size() with FreeBSD */ +#endif #ifdef HAVE_GC_GC_H # include