Merge "fix 'adb shell'"
am: 1d284004af
Change-Id: Ibc4532047231bc93ff876f13c328957e3cc2cffa
diff --git a/adb/sysdeps.h b/adb/sysdeps.h
index 979413a..0c5a6b4 100644
--- a/adb/sysdeps.h
+++ b/adb/sysdeps.h
@@ -355,8 +355,8 @@
static __inline__ void close_on_exec(borrowed_fd fd) {
int flags = get_fd_flags(fd);
- if (flags >= 0 && (flags & O_CLOEXEC) == 0) {
- fcntl(fd.get(), F_SETFD, flags | O_CLOEXEC);
+ if (flags >= 0 && (flags & FD_CLOEXEC) == 0) {
+ fcntl(fd.get(), F_SETFD, flags | FD_CLOEXEC);
}
}