aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libjson-c/patches/000-libm.patch
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-09-17 01:02:40 +0200
committerDavid Bauer <mail@david-bauer.net>2020-09-17 18:08:54 +0200
commitc2e75017a23f2bf6d017e940293b2a1f80d700be (patch)
tree25d8c89c8ffd8acacb8937740ebf09bbab04cca3 /package/libs/libjson-c/patches/000-libm.patch
parent056945faa4dd611298979767978f4bb2a52cabc0 (diff)
downloadupstream-c2e75017a23f2bf6d017e940293b2a1f80d700be.tar.gz
upstream-c2e75017a23f2bf6d017e940293b2a1f80d700be.tar.bz2
upstream-c2e75017a23f2bf6d017e940293b2a1f80d700be.zip
libjson-c: update to 0.15
Drop patches as they've been upstreamed: * 001-Fix-CVE-2020-12762.patch Refresh patches: * 000-libm.patch Add patch to avoid build failure due to missing docs in tarball. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/libs/libjson-c/patches/000-libm.patch')
-rw-r--r--package/libs/libjson-c/patches/000-libm.patch9
1 files changed, 8 insertions, 1 deletions
diff --git a/package/libs/libjson-c/patches/000-libm.patch b/package/libs/libjson-c/patches/000-libm.patch
index 35ffec8724..c6ff5f4766 100644
--- a/package/libs/libjson-c/patches/000-libm.patch
+++ b/package/libs/libjson-c/patches/000-libm.patch
@@ -1,6 +1,6 @@
--- a/math_compat.h
+++ b/math_compat.h
-@@ -6,31 +6,9 @@
+@@ -6,38 +6,9 @@
* @brief Do not use, json-c internal, may be changed or removed at any time.
*/
@@ -10,6 +10,9 @@
-#ifdef HAVE_DECL__ISNAN
-#include <float.h>
-#define isnan(x) _isnan(x)
+-#else
+-/* On platforms like AIX and "IBM i" we need to provide our own isnan */
+-#define isnan(x) ((x) != (x))
-#endif
-#endif
-
@@ -17,6 +20,10 @@
-#ifdef HAVE_DECL__FINITE
-#include <float.h>
-#define isinf(x) (!_finite(x))
+-#else
+-#include <float.h>
+-/* On platforms like AIX and "IBM i" we need to provide our own isinf */
+-#define isinf(x) ((x) < -DBL_MAX || (x) > DBL_MAX)
-#endif
-#endif
-