summaryrefslogtreecommitdiff
path: root/print/pslib/files
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2006-07-08 17:06:24 +0000
committerMichael Johnson <ahze@FreeBSD.org>2006-07-08 17:06:24 +0000
commit880b3cfa26d737c30a24c01ef3cc06d71eedc758 (patch)
tree4947f2cf067d8c29e10595833b2855e636c016d2 /print/pslib/files
parent- Always depends on japanese/p5-MeCab since mknmz command requires MeCab perl (diff)
- Fix build on sparc64
Notes
Notes: svn path=/head/; revision=167201
Diffstat (limited to 'print/pslib/files')
-rw-r--r--print/pslib/files/patch-src__bmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print/pslib/files/patch-src__bmp.c b/print/pslib/files/patch-src__bmp.c
index 981e8d46e949..6eca084b0acd 100644
--- a/print/pslib/files/patch-src__bmp.c
+++ b/print/pslib/files/patch-src__bmp.c
@@ -1,5 +1,5 @@
---- src/bmp.c.orig Mon Apr 24 23:25:31 2006
-+++ src/bmp.c Thu Jun 8 18:59:00 2006
+--- src/bmp.c.orig Mon Apr 24 10:25:31 2006
++++ src/bmp.c Sat Jul 8 13:02:51 2006
@@ -41,10 +41,28 @@
#include <fcntl.h>
#include <unistd.h>
@@ -12,8 +12,8 @@
+#include <sys/endian.h>
+
+#if __FreeBSD_version >= 500000
-+#define BMPSwabShort(x) bswap16(x)
-+#define BMPSwabLong(x) bswap32(x)
++#define BMPSwabShort(x) *x = bswap16(*x)
++#define BMPSwabLong(x) *x = bswap32(*x)
+#else
+#define BMPSwabShort(x) (be16toh(x))
+#define BMPSwabLong(x) (be32toh(x))