]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix freebsd 7 compile by adding malloc_np.h header. Fix bug 850.
authorNick Mathewson <nickm@torproject.org>
Wed, 5 Nov 2008 15:56:53 +0000 (15:56 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 5 Nov 2008 15:56:53 +0000 (15:56 +0000)
svn:r17190

configure.in
src/common/util.c

index 7ec88e983af72f3e97fcb127ac11a46c9e2a7841..d383a627a1d72dc29fec21555e7ff530d6304b2e 100644 (file)
@@ -324,7 +324,7 @@ AC_CHECK_HEADERS(netdb.h sys/ioctl.h sys/socket.h arpa/inet.h netinet/in.h pwd.h
 
 dnl These headers are not essential
 
-AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netinet/in6.h malloc.h sys/syslimits.h malloc/malloc.h linux/types.h sys/file.h)
+AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netinet/in6.h malloc.h sys/syslimits.h malloc/malloc.h linux/types.h sys/file.h malloc_np.h)
 
 TOR_CHECK_PROTOTYPE(malloc_good_size, HAVE_MALLOC_GOOD_SIZE_PROTOTYPE,
 [#ifdef HAVE_MALLOC_H
index dc15c6b03acbdcc57ee4db6327c811ec6b793bf0..640239f97259367db029a1eda6c882e2a4d568e7 100644 (file)
@@ -76,6 +76,9 @@ const char util_c_id[] = "$Id$";
 #ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
+#ifdef HAVE_MALLOC_NP_H
+#include <malloc_np.h>
+#endif
 
 /* =====
  * Memory management