summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-07-05 04:59:16 +0000
committermaya <maya@pkgsrc.org>2017-07-05 04:59:16 +0000
commit733e3fd71381f9ac16d42f98f66587a6d3a0154f (patch)
treeab88c81716567a81f4749e6013fe0aac3c10aecd /graphics
parente1367601fb6d3da74ba1360b47a13535d27aeee9 (diff)
downloadpkgsrc-733e3fd71381f9ac16d42f98f66587a6d3a0154f.tar.gz
png: don't typedef things when included by assembler code.
the current change is somewhat overkill and excludes some extra function declarations, but there's only one assembler file for which it applies and it was tested to build. Fixes compilation on ARM reported by John Klos in PR pkg/52367
Diffstat (limited to 'graphics')
-rw-r--r--graphics/png/distinfo3
-rw-r--r--graphics/png/patches/patch-pngpriv.h15
2 files changed, 17 insertions, 1 deletions
diff --git a/graphics/png/distinfo b/graphics/png/distinfo
index 68f328e6a21..28ddee97c43 100644
--- a/graphics/png/distinfo
+++ b/graphics/png/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.135 2017/07/03 11:07:00 wiz Exp $
+$NetBSD: distinfo,v 1.136 2017/07/05 04:59:16 maya Exp $
SHA1 (libpng-1.6.30.tar.xz) = b6f8ac4d83116a87d8e10e15ec360dab8a898f5c
RMD160 (libpng-1.6.30.tar.xz) = 581e0d22c4ec839d05d895646dfeb45f214f6722
SHA512 (libpng-1.6.30.tar.xz) = 8c58f0f8523d7c7e8e641134c9a0e7fb6b60cddd6b4689afaafde0c99cff74652c6fb800a45149910aa2d8f06695ba4774f6a4d64810f2419a714d4188d72f82
Size (libpng-1.6.30.tar.xz) = 988608 bytes
+SHA1 (patch-pngpriv.h) = 3da29edb5d89ab26b9787a71b87c3fd8f451ea39
diff --git a/graphics/png/patches/patch-pngpriv.h b/graphics/png/patches/patch-pngpriv.h
new file mode 100644
index 00000000000..9f9886052b8
--- /dev/null
+++ b/graphics/png/patches/patch-pngpriv.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-pngpriv.h,v 1.1 2017/07/05 04:59:16 maya Exp $
+
+Don't typedef types when included by assembler files
+
+--- pngpriv.h.orig 2017-06-28 18:46:03.000000000 +0000
++++ pngpriv.h
+@@ -464,7 +464,7 @@
+ static_cast<type>(static_cast<void*>(value))
+ # define png_aligncastconst(type, value) \
+ static_cast<type>(static_cast<const void*>(value))
+-#else
++#elif !defined(__ASSEMBLER__)
+ # define png_voidcast(type, value) (value)
+ # ifdef _WIN64
+ # ifdef __GNUC__