From eeea38c8e334545967285a375bfd9a1fe3d0ab2b Mon Sep 17 00:00:00 2001 From: Leo Date: Sat, 4 Apr 2020 14:31:11 -0300 Subject: testing/netcdf: fix build in s390x Use a patch from debian: https://salsa.debian.org/debian-gis-team/netcdf/-/commit/18d5a1d35b1d3deab05d4150ca1939bc9fb215ba --- testing/netcdf/byteswap.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testing/netcdf/byteswap.patch (limited to 'testing/netcdf/byteswap.patch') diff --git a/testing/netcdf/byteswap.patch b/testing/netcdf/byteswap.patch new file mode 100644 index 0000000000..eb4305be6a --- /dev/null +++ b/testing/netcdf/byteswap.patch @@ -0,0 +1,18 @@ +Description: Add forward declarations for byteswap8 & byteswap4. +Author: Dennis Heimbigner +Bug: https://github.com/Unidata/netcdf-c/issues/1687 + +diff --git a/libdispatch/dfilter.c b/libdispatch/dfilter.c +index 8938464..8efe591 100644 +--- a/libdispatch/dfilter.c ++++ b/libdispatch/dfilter.c +@@ -20,6 +20,9 @@ + #include "hdf5internal.h" + #endif + ++static void byteswap8(unsigned char*); ++static void byteswap4(unsigned char*); ++ + /* + Unified filter related code + */ -- cgit v1.2.3