aboutsummaryrefslogtreecommitdiffstats
path: root/testing/netcdf/byteswap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/netcdf/byteswap.patch')
-rw-r--r--testing/netcdf/byteswap.patch18
1 files changed, 18 insertions, 0 deletions
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
+ */