summaryrefslogtreecommitdiff
path: root/devel/hdf5
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-01-02 09:58:47 +0000
committerjperkin <jperkin@pkgsrc.org>2018-01-02 09:58:47 +0000
commit8b2af1c01de357b7b1f6223ee261a83f8233e773 (patch)
tree6798ca39173bf2b21a7ae8c7f2f150a35c5efb13 /devel/hdf5
parentcf30e2a86c1027974a5f0f28f0a8f667a6a5af6a (diff)
downloadpkgsrc-8b2af1c01de357b7b1f6223ee261a83f8233e773.tar.gz
hdf5: Avoid existing ERR definition.
Diffstat (limited to 'devel/hdf5')
-rw-r--r--devel/hdf5/distinfo3
-rw-r--r--devel/hdf5/patches/patch-src_H5private.h17
2 files changed, 19 insertions, 1 deletions
diff --git a/devel/hdf5/distinfo b/devel/hdf5/distinfo
index b17f3b75a33..1e3c2f357e8 100644
--- a/devel/hdf5/distinfo
+++ b/devel/hdf5/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.39 2017/11/15 20:28:27 minskim Exp $
+$NetBSD: distinfo,v 1.40 2018/01/02 09:58:47 jperkin Exp $
SHA1 (hdf5-1.10.1.tar.bz2) = 22edee1f4ed603ea9544daec3492874fa3028bbb
RMD160 (hdf5-1.10.1.tar.bz2) = 759e63ead405740dcf3260bdc9644b97480f3b8b
@@ -13,4 +13,5 @@ SHA1 (patch-hl_c++_examples_Makefile.in) = a65d0461a6e1ac464e089703f9f5ab6c1dcf1
SHA1 (patch-hl_c++_examples_run-hlc++-ex.sh.in) = 166d7c570e93948e68308d9e0584df8d19bdfec9
SHA1 (patch-hl_examples_Makefile.in) = df3650c121152471a045e1fec169eedeea757377
SHA1 (patch-hl_examples_run-hlc-ex.sh.in) = 43bf6c28fb667f3ae39145be08e0a3a75f370b47
+SHA1 (patch-src_H5private.h) = dbf7e44248b653274fbe1e0f7429d723107c6cdd
SHA1 (patch-tools_test_h5jam_testh5jam.sh.in) = c23e66454bf817b68120d360c63329ebed6ac2aa
diff --git a/devel/hdf5/patches/patch-src_H5private.h b/devel/hdf5/patches/patch-src_H5private.h
new file mode 100644
index 00000000000..1461de786bf
--- /dev/null
+++ b/devel/hdf5/patches/patch-src_H5private.h
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_H5private.h,v 1.1 2018/01/02 09:58:47 jperkin Exp $
+
+Avoid existing ERR definition.
+
+--- src/H5private.h.orig 2017-04-25 21:45:02.000000000 +0000
++++ src/H5private.h
+@@ -336,6 +336,10 @@
+ #define FAIL (-1)
+ #define UFAIL (unsigned)(-1)
+
++#ifdef ERR
++#undef ERR
++#endif
++
+ /* number of members in an array */
+ #ifndef NELMTS
+ # define NELMTS(X) (sizeof(X)/sizeof(X[0]))