commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10461 - in gnuradio/trunk: . gnuradio-core/src/lib/mi


From: michaelld
Subject: [Commit-gnuradio] r10461 - in gnuradio/trunk: . gnuradio-core/src/lib/missing
Date: Wed, 18 Feb 2009 08:18:24 -0700 (MST)

Author: michaelld
Date: 2009-02-18 08:18:23 -0700 (Wed, 18 Feb 2009)
New Revision: 10461

Modified:
   gnuradio/trunk/configure.ac
   gnuradio/trunk/gnuradio-core/src/lib/missing/posix_memalign.cc
Log:
Merging in branch to add malloc.h to posix_memalign.cc for Cygwin.



Modified: gnuradio/trunk/configure.ac
===================================================================
--- gnuradio/trunk/configure.ac 2009-02-18 03:05:58 UTC (rev 10460)
+++ gnuradio/trunk/configure.ac 2009-02-18 15:18:23 UTC (rev 10461)
@@ -125,7 +125,7 @@
 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)

Modified: gnuradio/trunk/gnuradio-core/src/lib/missing/posix_memalign.cc
===================================================================
--- gnuradio/trunk/gnuradio-core/src/lib/missing/posix_memalign.cc      
2009-02-18 03:05:58 UTC (rev 10460)
+++ gnuradio/trunk/gnuradio-core/src/lib/missing/posix_memalign.cc      
2009-02-18 15:18:23 UTC (rev 10461)
@@ -25,8 +25,12 @@
 #endif
 
 #include "posix_memalign.h"
-#include <stdlib.h>
 
+#ifdef HAVE_MALLOC_H
+// for Cygwin valloc () prototype
+#include <malloc.h>
+#endif
+
 #ifndef HAVE_POSIX_MEMALIGN
 
 /* emulate posix_memalign functionality, to some degree */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]