diff options
author | Dan Albert <danalbert@google.com> | 2017-05-22 12:58:18 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2017-05-22 12:58:18 -0700 |
commit | 5a215d7817baf190a8af76674303b0d50ce67c07 (patch) | |
tree | 212b863307cf627ce54a8b89cf9f30d76af7da93 /libc/kernel/tools/cpp.py | |
parent | cdfface662306d20cfaa4abe046eb85794201d6c (diff) |
Don't define IN_CLOEXEC/IN_NONBLOCK for pre-L.
Some third-party code uses the existence of IN_CLOEXEC/IN_NONBLOCK to
detect the availability of inotify_init1. This is not correct, since
`syscall(__NR_inotify_init1, IN_CLOEXEC)` is still valid even if the C
library doesn't have that function, but for the time being we don't
want to harm adoption to the unified headers. We'll avoid defining
IN_CLOEXEC and IN_NONBLOCK if we don't have inotify_init1 for the time
being, and maybe revisit this later.
Test: make checkbuild
Bug: https://github.com/android-ndk/ndk/issues/394
Change-Id: Iefdc1662b21045de886c7ad1cbeba6241163d943
Diffstat (limited to 'libc/kernel/tools/cpp.py')
0 files changed, 0 insertions, 0 deletions