Skip to content
Snippets Groups Projects
Commit 1eba63ef authored by Dan Willemsen's avatar Dan Willemsen
Browse files

Fix MacOSX 10.10 SDK build

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
parent a5df157b
Branches
No related tags found
No related merge requests found
...@@ -72,7 +72,6 @@ cc_defaults { ...@@ -72,7 +72,6 @@ cc_defaults {
"-DMYTHREAD_POSIX=1", "-DMYTHREAD_POSIX=1",
"-DTUKLIB_FAST_UNALIGNED_ACCESS=1", "-DTUKLIB_FAST_UNALIGNED_ACCESS=1",
"-DTUKLIB_PHYSMEM_SYSCONF=1",
"-DTUKLIB_CPUCORES_SYSCONF=1", "-DTUKLIB_CPUCORES_SYSCONF=1",
], ],
...@@ -89,12 +88,16 @@ cc_defaults { ...@@ -89,12 +88,16 @@ cc_defaults {
"-DHAVE_PTHREAD_CONDATTR_SETCLOCK=1", "-DHAVE_PTHREAD_CONDATTR_SETCLOCK=1",
"-DHAVE_FUTIMENS=1", "-DHAVE_FUTIMENS=1",
"-DHAVE_POSIX_FADVISE=1", "-DHAVE_POSIX_FADVISE=1",
"-DTUKLIB_PHYSMEM_SYSCONF=1",
], ],
}, },
darwin: { darwin: {
cflags: [ cflags: [
"-DHAVE_OPTRESET=1", "-DHAVE_OPTRESET=1",
"-DHAVE_FUTIMES=1", "-DHAVE_FUTIMES=1",
"-DTUKLIB_PHYSMEM_SYSCTL=1",
], ],
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment