| From e10a73de254b570bbc29b26423dbb86b4265bb05 Mon Sep 17 00:00:00 2001 |
| From: Chen Qi <Qi.Chen@windriver.com> |
| Date: Mon, 25 Feb 2019 16:53:06 +0800 |
| Subject: [PATCH] test-json.c: define M_PIl |
| |
| Fix the following compile failure: |
| src/test/test-json.c:305:50: error: 'M_PIl' undeclared (first use in this function); did you mean 'M_PI'? |
| |
| Upstream-Status: Inappropriate [musl specific] |
| |
| This is fixed upstream where systemd no longer needs M_PIl so it could |
| be dropped when upgrading to 251+ see |
| https://github.com/systemd/systemd/commit/f9a1fd2a3b2d8212ba84ef1c3b55657ced34475e |
| |
| Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| |
| --- |
| src/test/test-json.c | 4 ++++ |
| 1 file changed, 4 insertions(+) |
| |
| diff --git a/src/test/test-json.c b/src/test/test-json.c |
| index b385edc269..5e5830238c 100644 |
| --- a/src/test/test-json.c |
| +++ b/src/test/test-json.c |
| @@ -14,6 +14,10 @@ |
| #include "tests.h" |
| #include "util.h" |
| |
| +#ifndef M_PIl |
| +#define M_PIl 3.141592653589793238462643383279502884L |
| +#endif |
| + |
| static void test_tokenizer_one(const char *data, ...) { |
| unsigned line = 0, column = 0; |
| void *state = NULL; |