From: michaelld Date: Wed, 18 Feb 2009 15:18:23 +0000 (+0000) Subject: Merging in branch to add malloc.h to posix_memalign.cc for Cygwin. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=5d1b71031124406721a701c259c12392cd52c4aa;p=debian%2Fgnuradio Merging in branch to add malloc.h to posix_memalign.cc for Cygwin. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10461 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/configure.ac b/configure.ac index 62844c65..3e3cbd54 100644 --- a/configure.ac +++ b/configure.ac @@ -125,7 +125,7 @@ AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h) AC_CHECK_HEADERS(linux/ppdev.h dev/ppbus/ppi.h sys/mman.h sys/select.h sys/types.h) -AC_CHECK_HEADERS(sys/resource.h stdint.h sched.h signal.h sys/syscall.h) +AC_CHECK_HEADERS(sys/resource.h stdint.h sched.h signal.h sys/syscall.h malloc.h) AC_CHECK_HEADERS(netinet/in.h) AC_CHECK_HEADERS(windows.h) AC_CHECK_HEADERS(vec_types.h) diff --git a/gnuradio-core/src/lib/missing/posix_memalign.cc b/gnuradio-core/src/lib/missing/posix_memalign.cc index a1a707ae..a2e98b01 100644 --- a/gnuradio-core/src/lib/missing/posix_memalign.cc +++ b/gnuradio-core/src/lib/missing/posix_memalign.cc @@ -25,7 +25,11 @@ #endif #include "posix_memalign.h" -#include + +#ifdef HAVE_MALLOC_H +// for Cygwin valloc () prototype +#include +#endif #ifndef HAVE_POSIX_MEMALIGN