aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-03-09 10:16:36 -0800
committerDan Willemsen <dwillemsen@google.com>2018-03-09 10:22:12 -0800
commit1eba63ef29b17b43e7e2c6968207bd171b73f485 (patch)
tree551cffaf8a3d7e1c6aafce7ee368db285879ea22
parenta5df157b170f83dc5fd4a9605d1c3e9073cbec76 (diff)
downloadxz-ndk-release-r20.tar.gz
Apparently _SC_PHYS_PAGES was added in the 10.11 SDK, but even though HW_PHYSMEM isn't in the manpage, it exists in all the SDKs we care about. (It is capped at 32-bits however, since HW_PHYSMEM64 is not available) Bug: 36130900 Test: build on Mac 10.13 Test: check headers in 10.10 SDK Change-Id: I57eb3475c541fee6a8cd337a89f71f11495f5cb6
-rw-r--r--Android.bp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 2ed061ad..8f9022ad 100644
--- a/Android.bp
+++ b/Android.bp
@@ -72,7 +72,6 @@ cc_defaults {
"-DMYTHREAD_POSIX=1",
"-DTUKLIB_FAST_UNALIGNED_ACCESS=1",
- "-DTUKLIB_PHYSMEM_SYSCONF=1",
"-DTUKLIB_CPUCORES_SYSCONF=1",
],
@@ -89,12 +88,16 @@ cc_defaults {
"-DHAVE_PTHREAD_CONDATTR_SETCLOCK=1",
"-DHAVE_FUTIMENS=1",
"-DHAVE_POSIX_FADVISE=1",
+
+ "-DTUKLIB_PHYSMEM_SYSCONF=1",
],
},
darwin: {
cflags: [
"-DHAVE_OPTRESET=1",
"-DHAVE_FUTIMES=1",
+
+ "-DTUKLIB_PHYSMEM_SYSCTL=1",
],
},
},