blob: 0e5629d37b5bda3b55b2dfff95f618de002b9ae5 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 902412c271e0c5d9cb93b10ec0fb5b119b393474 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 16:53:06 +0800
4Subject: [PATCH 24/24] test-json.c: define M_PIl
5
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>
12---
13 src/test/test-json.c | 4 ++++
14 1 file changed, 4 insertions(+)
15
16diff --git a/src/test/test-json.c b/src/test/test-json.c
Brad Bishopc342db32019-05-15 21:57:59 -040017index 9b8a2a9..efc746c 100644
Brad Bishop19323692019-04-05 15:28:33 -040018--- a/src/test/test-json.c
19+++ b/src/test/test-json.c
Brad Bishopc342db32019-05-15 21:57:59 -040020@@ -11,6 +11,10 @@
21 #include "tests.h"
Brad Bishop19323692019-04-05 15:28:33 -040022 #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--
Brad Bishopc342db32019-05-15 21:57:59 -0400322.11.0
Brad Bishop19323692019-04-05 15:28:33 -040033