diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0024-test-json.c-define-M_PIl.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0024-test-json.c-define-M_PIl.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0024-test-json.c-define-M_PIl.patch b/meta/recipes-core/systemd/systemd/0024-test-json.c-define-M_PIl.patch new file mode 100644 index 0000000000..c2ae2bbb7b --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0024-test-json.c-define-M_PIl.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 902412c271e0c5d9cb93b10ec0fb5b119b393474 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Mon, 25 Feb 2019 16:53:06 +0800 | ||
4 | Subject: [PATCH 24/24] test-json.c: define M_PIl | ||
5 | |||
6 | Fix the following compile failure: | ||
7 | src/test/test-json.c:305:50: error: 'M_PIl' undeclared (first use in this function); did you mean 'M_PI'? | ||
8 | |||
9 | Upstream-Status: Inappropriate [musl specific] | ||
10 | |||
11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
12 | --- | ||
13 | src/test/test-json.c | 4 ++++ | ||
14 | 1 file changed, 4 insertions(+) | ||
15 | |||
16 | diff --git a/src/test/test-json.c b/src/test/test-json.c | ||
17 | index fdf1b4f..fa541f8 100644 | ||
18 | --- a/src/test/test-json.c | ||
19 | +++ b/src/test/test-json.c | ||
20 | @@ -10,6 +10,10 @@ | ||
21 | #include "strv.h" | ||
22 | #include "util.h" | ||
23 | |||
24 | +#ifndef M_PIl | ||
25 | +#define M_PIl 3.141592653589793238462643383279502884L | ||
26 | +#endif | ||
27 | + | ||
28 | static void test_tokenizer(const char *data, ...) { | ||
29 | unsigned line = 0, column = 0; | ||
30 | void *state = NULL; | ||
31 | -- | ||
32 | 2.7.4 | ||
33 | |||