summaryrefslogtreecommitdiff
path: root/graphics/netpbm
diff options
context:
space:
mode:
authorjdc <jdc>2015-01-23 11:26:40 +0000
committerjdc <jdc>2015-01-23 11:26:40 +0000
commit4da2dded9f640c2bf19d7acdc3c21b83985532cb (patch)
tree99bac3db5ae8e75623d0d44835e88f9739eb0306 /graphics/netpbm
parent123c12a7c94588764ede144a35adff254b7f6f91 (diff)
downloadpkgsrc-4da2dded9f640c2bf19d7acdc3c21b83985532cb.tar.gz
Add build fix for big-endian hosts (sent upstream).
Diffstat (limited to 'graphics/netpbm')
-rw-r--r--graphics/netpbm/patches/patch-wordaccess_be_aligned.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/netpbm/patches/patch-wordaccess_be_aligned.h b/graphics/netpbm/patches/patch-wordaccess_be_aligned.h
new file mode 100644
index 00000000000..3c0e68e2312
--- /dev/null
+++ b/graphics/netpbm/patches/patch-wordaccess_be_aligned.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-wordaccess_be_aligned.h,v 1.1 2015/01/23 11:26:40 jdc Exp $
+
+--- lib/util/wordaccess_be_aligned.h.dist 2014-09-01 22:22:28.000000000 +0100
++++ lib/util/wordaccess_be_aligned.h 2015-01-23 09:22:52.000000000 +0000
+@@ -24,7 +24,7 @@
+ static __inline__ void
+ wordintToBytes(wordintBytes * const bytesP,
+ wordint const wordInt) {
+- uint16_t const hi = ((wordInt >> 48) & 0xFF)
++ uint16_t const hi = ((wordInt >> 48) & 0xFF);
+ uint16_t const mh = ((wordInt >> 32) & 0xFF);
+ uint16_t const ml = ((wordInt >> 24) & 0xFF);
+ uint16_t const lo = ((wordInt >> 0) & 0xFF);