Assume bionic has up-to-date linux/capability.h

The fallback android_filesystem_capability.h doesn't play nicely with
other kernel headers, since it #undef's __user. If we're building with
bionic (either for device or host), we use the same kernel headers, so
just use those.

Bug: 38056396
Test: build with Host_bionic:true
Change-Id: Idc61b6d96d86891164abe71604924638d67aefe2
This commit is contained in:
Dan Willemsen 2017-05-07 11:59:21 -07:00
parent ddfd5056a2
commit 0de03b53fc
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
#include <sys/cdefs.h>
#include <sys/types.h>
#if defined(__ANDROID__)
#if defined(__BIONIC__)
#include <linux/capability.h>
#else
#include "android_filesystem_capability.h"