diff options
author | Elliott Hughes <enh@google.com> | 2018-10-24 20:16:59 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-10-24 20:16:59 +0000 |
commit | 48a0e186a7f5ecad06bc0929fd86fda3416cf740 (patch) | |
tree | 91c67f78a573ff6f20b692a7375daa6ed2cd9536 /fastboot/fastboot.cpp | |
parent | 0064e9ca1a5809a140fd9dcf923751f9dbb295d5 (diff) | |
parent | e8f4b14301e697e0cc54754b1837ce106f08e304 (diff) |
Merge "Add a simple MappedFile to libbase and switch fastboot and libziparchive over."
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 6b6e659c6..925cac430 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -79,8 +79,8 @@ using android::base::Split; using android::base::Trim; using android::base::unique_fd; -#ifndef O_BINARY -#define O_BINARY 0 +#if defined(_WIN32) +#define O_CLOEXEC O_NOINHERIT #endif static const char* serial = nullptr; |