OSDN Git Service

Fix boost build with unified headers.
authorElliott Hughes <enh@google.com>
Thu, 1 Jun 2017 21:08:58 +0000 (14:08 -0700)
committerElliott Hughes <enh@google.com>
Thu, 1 Jun 2017 21:08:58 +0000 (14:08 -0700)
commit2eab77e5034444fee63a302c89502c970dd2b0b6
tree7d8db3d5a0fffeb638d73e2702b2d30bf2b46e1f
parent15eaaddef9fffda1209e9cc576b47b0f6e0cb379
Fix boost build with unified headers.

boost (1.64.0 at least) assumes that if you have POSIX_MADV_NORMAL, you have
posix_madvise. With unified headers, this isn't true. Rather than make life
harder for projects that don't use configure, just make it so. We already
applied similar workarounds for epoll_create1 and inotify_init1.

Bug: https://github.com/android-ndk/ndk/issues/395
Test: built boost (long story!)
Change-Id: I5d2d8de7b30921dde913251d35dcd249a2876f94
libc/include/sys/mman.h