diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-03-09 10:16:36 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-03-09 10:22:12 -0800 |
commit | 1eba63ef29b17b43e7e2c6968207bd171b73f485 (patch) | |
tree | 551cffaf8a3d7e1c6aafce7ee368db285879ea22 | |
parent | a5df157b170f83dc5fd4a9605d1c3e9073cbec76 (diff) | |
download | xz-ndk-release-r20.tar.gz |
Fix MacOSX 10.10 SDK buildndk-r20bndk-r20-beta3ndk-r20-beta2ndk-r20-beta1ndk-r20ndk-r19cndk-r19bndk-r19-beta2ndk-r19-beta1ndk-r19ndk-r18bndk-r18-beta2ndk-r18-beta1ndk-release-r20ndk-release-r19ndk-release-r18
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.bp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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", ], }, }, |