From a7821b7121933b361554b28a2f9455783a330591 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 21 May 2014 20:33:28 -0700 Subject: [PATCH] Use __typeof__() instead of typeof() typeof() is a gcc builtin and is not always available (such as clang when -std=c*). Both gcc and clang always expose __typeof__(), so just use that. Change-Id: I75e2a990acc35f6f39b2c353f6548100ec03c67f --- libc/include/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/include/unistd.h b/libc/include/unistd.h index 6cb36d8f9..08a82e6ee 100644 --- a/libc/include/unistd.h +++ b/libc/include/unistd.h @@ -207,7 +207,7 @@ extern int setdomainname(const char *, size_t); /* Used to retry syscalls that can return EINTR. */ #define TEMP_FAILURE_RETRY(exp) ({ \ - typeof (exp) _rc; \ + __typeof__(exp) _rc; \ do { \ _rc = (exp); \ } while (_rc == -1 && errno == EINTR); \