diff options
Diffstat (limited to 'meta/recipes-core/musl/musl')
-rw-r--r-- | meta/recipes-core/musl/musl/0001-unistd.h-Add-TEMP_FAILURE_RETRY.patch | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/meta/recipes-core/musl/musl/0001-unistd.h-Add-TEMP_FAILURE_RETRY.patch b/meta/recipes-core/musl/musl/0001-unistd.h-Add-TEMP_FAILURE_RETRY.patch deleted file mode 100644 index 4d48d61651..0000000000 --- a/meta/recipes-core/musl/musl/0001-unistd.h-Add-TEMP_FAILURE_RETRY.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 19cbebc3fa33c6a1a71a6036da4d67c98f859f06 Mon Sep 17 00:00:00 2001 | ||
2 | From: Adrian Bunk <bunk@stusta.de> | ||
3 | Date: Wed, 15 May 2019 16:08:33 +0300 | ||
4 | Subject: unistd.h: Add TEMP_FAILURE_RETRY | ||
5 | |||
6 | Signed-off-by: Adrian Bunk <bunk@stusta.de> | ||
7 | Upstream-Status: Inappropriate [oe-specific] | ||
8 | --- | ||
9 | include/unistd.h | 11 +++++++++++ | ||
10 | 1 file changed, 11 insertions(+) | ||
11 | |||
12 | diff --git a/include/unistd.h b/include/unistd.h | ||
13 | index 9485da7a..8a75af57 100644 | ||
14 | --- a/include/unistd.h | ||
15 | +++ b/include/unistd.h | ||
16 | @@ -460,6 +460,17 @@ int eaccess(const char *, int); | ||
17 | #define _CS_V6_ENV 1148 | ||
18 | #define _CS_V7_ENV 1149 | ||
19 | |||
20 | +#ifdef _GNU_SOURCE | ||
21 | +#ifndef TEMP_FAILURE_RETRY | ||
22 | +# define TEMP_FAILURE_RETRY(expression) \ | ||
23 | + (__extension__ \ | ||
24 | + ({ long int __result; \ | ||
25 | + do __result = (long int) (expression); \ | ||
26 | + while (__result == -1L && errno == EINTR); \ | ||
27 | + __result; })) | ||
28 | +#endif | ||
29 | +#endif | ||
30 | + | ||
31 | #ifdef __cplusplus | ||
32 | } | ||
33 | #endif | ||
34 | -- | ||
35 | 2.20.1 | ||
36 | |||