summaryrefslogtreecommitdiffstats
path: root/fastboot/fastboot.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-10-24 14:06:45 -0700
committerElliott Hughes <enh@google.com>2018-10-24 14:06:45 -0700
commit32df7ee5c82a482f48c6df14ce3a77710cc0eb67 (patch)
tree43e3be483e869242b698f88602e0eb8dff0c8ac1 /fastboot/fastboot.cpp
parent48a0e186a7f5ecad06bc0929fd86fda3416cf740 (diff)
downloadsystem_core-32df7ee5c82a482f48c6df14ce3a77710cc0eb67.tar.gz
system_core-32df7ee5c82a482f48c6df14ce3a77710cc0eb67.tar.bz2
system_core-32df7ee5c82a482f48c6df14ce3a77710cc0eb67.zip
libbase: add O_CLOEXEC to <android-base/file.h>.
We already expose O_BINARY, and O_CLOEXEC seems equally legitimate. Bug: N/A Test: builds Change-Id: I7f07e1bb2a5d6b5c5f293783c39ceab148fabefb
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r--fastboot/fastboot.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 925cac430..5101410ce 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -79,10 +79,6 @@ using android::base::Split;
using android::base::Trim;
using android::base::unique_fd;
-#if defined(_WIN32)
-#define O_CLOEXEC O_NOINHERIT
-#endif
-
static const char* serial = nullptr;
static bool g_long_listing = false;