[config] Move the complex.h check to autoconf instead of a PLATFORM_ANDROID check.
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 6 Apr 2015 21:20:26 +0000 (17:20 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 6 Apr 2015 22:38:47 +0000 (18:38 -0400)
configure.ac
mono/metadata/threadpool-ms.c

index f6680e3cb094ffed258acf5173397010baa38a98..138f88ec0c263e6b2e483a5561c104e725835a51 100644 (file)
@@ -432,7 +432,7 @@ AC_PROG_LD_GNU
 AM_ICONV()
 
 AC_CHECK_HEADERS(sys/filio.h sys/sockio.h netdb.h utime.h sys/utime.h semaphore.h sys/un.h linux/rtc.h sys/syscall.h sys/mkdev.h sys/uio.h sys/param.h sys/sysctl.h libproc.h)
-AC_CHECK_HEADERS(sys/param.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h asm/sigcontext.h sys/inotify.h arpa/inet.h)
+AC_CHECK_HEADERS(sys/param.h sys/socket.h sys/ipc.h sys/sem.h sys/utsname.h alloca.h ucontext.h pwd.h sys/select.h netinet/tcp.h netinet/in.h unistd.h sys/types.h link.h asm/sigcontext.h sys/inotify.h arpa/inet.h complex.h)
 AC_CHECK_HEADERS([linux/netlink.h linux/rtnetlink.h],
                   [], [], [#include <stddef.h>
                  #include <sys/socket.h>
index 529f46e59119b01b870fb3fad2e0c71205647e41..d31ae051e04f2aa75f27751c641315c1595940d8 100644 (file)
@@ -22,7 +22,7 @@
 #include <stdlib.h>
 #include <math.h>
 
-#ifdef PLATFORM_ANDROID
+#if !defined (HAVE_COMPLEX_H)
 #include <../../support/libm/complex.h>
 #else
 #include <complex.h>