changeset 7863:b145040d5adb HEAD

FreeBSD compile warning fix.
author Timo Sirainen <tss@iki.fi>
date Fri, 13 Jun 2008 10:07:09 +0300
parents fa00c24cf0d6
children f5d1dc944a7c
files configure.in src/lib/mempool-system-clean.c src/lib/mempool-system.c
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
   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)],
--- 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
@@ -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
--- 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
@@ -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>