summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2015-09-11 12:50:34 +0000
committergdt <gdt@pkgsrc.org>2015-09-11 12:50:34 +0000
commit6890d53574f85728ddcccdcfe28f47f6bf404989 (patch)
treea2ff8efd7d357b0a8a8faef260f0033589dabe3b /print
parent44665a9106bc76e0ff56858b8ac62d5b80f0ba24 (diff)
downloadpkgsrc-6890d53574f85728ddcccdcfe28f47f6bf404989.tar.gz
Belatedly add patch from previous commit.
Diffstat (limited to 'print')
-rw-r--r--print/gutenprint-lib/patches/patch-src_main_print-olympus.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/print/gutenprint-lib/patches/patch-src_main_print-olympus.c b/print/gutenprint-lib/patches/patch-src_main_print-olympus.c
new file mode 100644
index 00000000000..b48acf3239a
--- /dev/null
+++ b/print/gutenprint-lib/patches/patch-src_main_print-olympus.c
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_main_print-olympus.c,v 1.1 2015/09/11 12:50:34 gdt Exp $
+
+Fix endian detection to be like other uses in gutenprint.
+Reported upstream 20150909.
+
+--- src/main/print-olympus.c.orig 2014-05-15 01:18:36.000000000 +0000
++++ src/main/print-olympus.c
+@@ -4901,9 +4901,9 @@ dyesub_do_print(stp_vars_t *v, stp_image
+ }
+
+ if (pv.bytes_per_ink_channel > 1) {
+-#if defined(__LITTLE_ENDIAN) || defined(__LITTLE_ENDIAN__)
++#if __BYTE_ORDER == __LITTLE_ENDIAN
+ pv.byteswap = dyesub_feature(caps, DYESUB_FEATURE_BIGENDIAN);
+-#elif defined (__BIG_ENDIAN) || defined(__BIG_ENDIAN__)
++#elif __BYTE_ORDER == __BIG_ENDIAN
+ pv.byteswap = !dyesub_feature(caps, DYESUB_FEATURE_BIGENDIAN);
+ #else
+ #error "Unable to determine endianness, aborting compilation!"