summaryrefslogtreecommitdiffstats
path: root/adb/sysdeps.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-11-28 18:05:27 -0800
committerElliott Hughes <enh@google.com>2017-11-28 18:05:27 -0800
commit3df2fa6d8ebd261a1c74601943f2cc3ce52cc24b (patch)
treec9ce84fef36aba867f832e23801809024f50f971 /adb/sysdeps.h
parentd2ce2f4f4577d52d23b840e1b587f5c96474577f (diff)
downloadsystem_core-3df2fa6d8ebd261a1c74601943f2cc3ce52cc24b.tar.gz
system_core-3df2fa6d8ebd261a1c74601943f2cc3ce52cc24b.tar.bz2
system_core-3df2fa6d8ebd261a1c74601943f2cc3ce52cc24b.zip
Remove a duplicate TEMP_FAILURE_RETRY.
Bug: N/A Test: builds Change-Id: I19c2f50422e8a7e0c451a464586553f3e5eaadab
Diffstat (limited to 'adb/sysdeps.h')
-rw-r--r--adb/sysdeps.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/adb/sysdeps.h b/adb/sysdeps.h
index 0abb680d3..307be6d58 100644
--- a/adb/sysdeps.h
+++ b/adb/sysdeps.h
@@ -31,6 +31,7 @@
// Include this before open/close/unlink are defined as macros below.
#include <android-base/errors.h>
+#include <android-base/macros.h>
#include <android-base/unique_fd.h>
#include <android-base/utf8.h>
@@ -38,21 +39,6 @@
#include "sysdeps/network.h"
#include "sysdeps/stat.h"
-/*
- * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
- * <unistd.h>. (Alas, it is not as standard as we'd hoped!) So, if it's
- * not already defined, then define it here.
- */
-#ifndef TEMP_FAILURE_RETRY
-/* Used to retry syscalls that can return EINTR. */
-#define TEMP_FAILURE_RETRY(exp) ({ \
- typeof (exp) _rc; \
- do { \
- _rc = (exp); \
- } while (_rc == -1 && errno == EINTR); \
- _rc; })
-#endif
-
// Some printf-like functions are implemented in terms of
// android::base::StringAppendV, so they should use the same attribute for
// compile-time format string checking. On Windows, if the mingw version of