diff options
author | gdt <gdt@pkgsrc.org> | 2015-09-11 12:50:34 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2015-09-11 12:50:34 +0000 |
commit | 6890d53574f85728ddcccdcfe28f47f6bf404989 (patch) | |
tree | a2ff8efd7d357b0a8a8faef260f0033589dabe3b /print/gutenprint-lib | |
parent | 44665a9106bc76e0ff56858b8ac62d5b80f0ba24 (diff) | |
download | pkgsrc-6890d53574f85728ddcccdcfe28f47f6bf404989.tar.gz |
Belatedly add patch from previous commit.
Diffstat (limited to 'print/gutenprint-lib')
-rw-r--r-- | print/gutenprint-lib/patches/patch-src_main_print-olympus.c | 19 |
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!" |