From befc7f388f7b49c7922909c5215d311e99c50c8c Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 8 Sep 2016 16:05:51 -0700 Subject: Don't use posix_memalign. Android didn't have posix_memalign until android-16, and this is building for android-9. This breaks following the NDK headers update. Test: mm Bug: None Change-Id: I228aa66e36cd7e4f40c4ae7bea6a7b68490189d5 --- Eigen/src/Core/util/Memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 754e29bc5..779640237 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -63,7 +63,7 @@ // Currently, let's include it only on unix systems: #if defined(__unix__) || defined(__unix) #include - #if ((defined __QNXNTO__) || (defined _GNU_SOURCE) || (defined __PGI) || ((defined _XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600))) && (defined _POSIX_ADVISORY_INFO) && (_POSIX_ADVISORY_INFO > 0) + #if ((defined __QNXNTO__) || (defined _GNU_SOURCE) || (defined __PGI) || ((defined _XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600))) && (defined _POSIX_ADVISORY_INFO) && (_POSIX_ADVISORY_INFO > 0) && !defined(EIGEN_ANDROID_POSIX_MEMALIGN_WR) #define EIGEN_HAS_POSIX_MEMALIGN 1 #endif #endif -- cgit v1.2.3