blob: 80beada3d38615a4c7eac8e705982deedf940ea6 [file] [log] [blame]
Andrew Geissler706d5aa2021-02-12 15:55:30 -06001From a05cc5fb3dc0e51682c40196285cdda34ec90783 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 16:53:06 +0800
Andrew Geissler706d5aa2021-02-12 15:55:30 -06004Subject: [PATCH] test-json.c: define M_PIl
Brad Bishop19323692019-04-05 15:28:33 -04005
6Fix the following compile failure:
7src/test/test-json.c:305:50: error: 'M_PIl' undeclared (first use in this function); did you mean 'M_PI'?
8
9Upstream-Status: Inappropriate [musl specific]
10
11Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Andrew Geissler706d5aa2021-02-12 15:55:30 -060012
Brad Bishop19323692019-04-05 15:28:33 -040013---
14 src/test/test-json.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17diff --git a/src/test/test-json.c b/src/test/test-json.c
Andrew Geissler706d5aa2021-02-12 15:55:30 -060018index a6613043b924..ca823ea79f05 100644
Brad Bishop19323692019-04-05 15:28:33 -040019--- a/src/test/test-json.c
20+++ b/src/test/test-json.c
Andrew Geissler706d5aa2021-02-12 15:55:30 -060021@@ -12,6 +12,10 @@
Brad Bishopc342db32019-05-15 21:57:59 -040022 #include "tests.h"
Brad Bishop19323692019-04-05 15:28:33 -040023 #include "util.h"
24
25+#ifndef M_PIl
26+#define M_PIl 3.141592653589793238462643383279502884L
27+#endif
28+
29 static void test_tokenizer(const char *data, ...) {
30 unsigned line = 0, column = 0;
31 void *state = NULL;