summaryrefslogtreecommitdiff
path: root/fastboot/fastboot.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-24 20:16:59 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-10-24 20:16:59 +0000
commit48a0e186a7f5ecad06bc0929fd86fda3416cf740 (patch)
tree91c67f78a573ff6f20b692a7375daa6ed2cd9536 /fastboot/fastboot.cpp
parent0064e9ca1a5809a140fd9dcf923751f9dbb295d5 (diff)
parente8f4b14301e697e0cc54754b1837ce106f08e304 (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.cpp4
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;