From a84a66c54679cf9ad5ae875474bf17951f9c9f3a Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 31 Dec 2017 23:09:35 +0100 Subject: testing/postgis: build with json-c and pcre --- testing/postgis/json-c-0.13.patch | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 testing/postgis/json-c-0.13.patch (limited to 'testing/postgis/json-c-0.13.patch') diff --git a/testing/postgis/json-c-0.13.patch b/testing/postgis/json-c-0.13.patch new file mode 100644 index 0000000000..b8f3ec717e --- /dev/null +++ b/testing/postgis/json-c-0.13.patch @@ -0,0 +1,34 @@ +From a079dba76b209b788e9ced3641e2289b0820216c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= +Date: Fri, 15 Dec 2017 13:35:40 +0100 +Subject: [PATCH] geojson: Do not include private header for json-c >= 0.13 + +Patch-Source: https://src.fedoraproject.org/rpms/postgis/blob/master/f/postgis-2.4.1_json-c_013.patch +--- + liblwgeom/lwin_geojson.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/liblwgeom/lwin_geojson.c b/liblwgeom/lwin_geojson.c +index 749d03374..ef907ee79 100644 +--- a/liblwgeom/lwin_geojson.c ++++ b/liblwgeom/lwin_geojson.c +@@ -31,13 +31,19 @@ + + #if defined(HAVE_LIBJSON) || defined(HAVE_LIBJSON_C) /* --{ */ + ++#define JSON_C_VERSION_013 (13 << 8) ++ + #ifdef HAVE_LIBJSON_C + #include ++#if !defined(JSON_C_VERSION_NUM) || JSON_C_VERSION_NUM < JSON_C_VERSION_013 + #include ++#endif + #else + #include ++#if !defined(JSON_C_VERSION_NUM) || JSON_C_VERSION_NUM < JSON_C_VERSION_013 + #include + #endif ++#endif + + #ifndef JSON_C_VERSION + /* Adds support for libjson < 0.10 */ -- cgit v1.2.3