commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r10455 - in gnuradio/branches/developers/michaelld/add


From: michaelld
Subject: [Commit-gnuradio] r10455 - in gnuradio/branches/developers/michaelld/add_malloc: . gnuradio-core/src/lib/missing
Date: Tue, 17 Feb 2009 10:24:16 -0700 (MST)

Author: michaelld
Date: 2009-02-17 10:24:16 -0700 (Tue, 17 Feb 2009)
New Revision: 10455

Modified:
   gnuradio/branches/developers/michaelld/add_malloc/configure.ac
   
gnuradio/branches/developers/michaelld/add_malloc/gnuradio-core/src/lib/missing/posix_memalign.cc
Log:
Quick change to allow compilation on Cygwin for posix_memalign.cc .
Works on latest OSX and Ubuntu; testing underway on Cygwin.



Modified: gnuradio/branches/developers/michaelld/add_malloc/configure.ac
===================================================================
--- gnuradio/branches/developers/michaelld/add_malloc/configure.ac      
2009-02-17 17:19:48 UTC (rev 10454)
+++ gnuradio/branches/developers/michaelld/add_malloc/configure.ac      
2009-02-17 17:24:16 UTC (rev 10455)
@@ -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/branches/developers/michaelld/add_malloc/gnuradio-core/src/lib/missing/posix_memalign.cc
===================================================================
--- 
gnuradio/branches/developers/michaelld/add_malloc/gnuradio-core/src/lib/missing/posix_memalign.cc
   2009-02-17 17:19:48 UTC (rev 10454)
+++ 
gnuradio/branches/developers/michaelld/add_malloc/gnuradio-core/src/lib/missing/posix_memalign.cc
   2009-02-17 17:24:16 UTC (rev 10455)
@@ -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]