diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/util/common_allocation.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 687ea1e20..e77a20b6b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -634,7 +634,7 @@ AC_CHECK_HEADERS([fcntl.h math.h errno.h ctype.h limits.h stdio.h stdlib.h strin | |||
634 | 634 | ||
635 | 635 | ||
636 | # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) | 636 | # Checks for headers that are only required on some systems or opional (and where we do NOT abort if they are not there) |
637 | AC_CHECK_HEADERS([malloc.h malloc/malloc.h langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h ucred.h sys/ucred.h endian.h sys/endian.h execinfo.h]) | 637 | AC_CHECK_HEADERS([malloc.h malloc/malloc.h malloc/malloc_np.h langinfo.h sys/param.h sys/mount.h sys/statvfs.h sys/select.h sockLib.h sys/mman.h sys/msg.h sys/vfs.h arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h unistd.h kstat.h sys/sysinfo.h kvm.h sys/file.h sys/resource.h ifaddrs.h mach/mach.h stddef.h sys/timeb.h terminos.h argz.h ucred.h sys/ucred.h endian.h sys/endian.h execinfo.h]) |
638 | 638 | ||
639 | # FreeBSD requires something more funky for netinet/in_systm.h and netinet/ip.h... | 639 | # FreeBSD requires something more funky for netinet/in_systm.h and netinet/ip.h... |
640 | AC_CHECK_HEADERS([sys/types.h netinet/in_systm.h netinet/in.h netinet/ip.h],,, | 640 | AC_CHECK_HEADERS([sys/types.h netinet/in_systm.h netinet/in.h netinet/ip.h],,, |
diff --git a/src/util/common_allocation.c b/src/util/common_allocation.c index c4cbe7c61..3584f73e7 100644 --- a/src/util/common_allocation.c +++ b/src/util/common_allocation.c | |||
@@ -197,7 +197,7 @@ GNUNET_xrealloc_ (void *ptr, size_t n, const char *filename, int linenumber) | |||
197 | #if WINDOWS | 197 | #if WINDOWS |
198 | #define M_SIZE(p) _msize (p) | 198 | #define M_SIZE(p) _msize (p) |
199 | #endif | 199 | #endif |
200 | #ifdef FREEBSD | 200 | #if HAVE_MALLOC_NP_H |
201 | #include <malloc_np.h> | 201 | #include <malloc_np.h> |
202 | #endif | 202 | #endif |
203 | #if HAVE_MALLOC_USABLE_SIZE | 203 | #if HAVE_MALLOC_USABLE_SIZE |