pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/cityhash Fix build on SunOS. Add patch to def...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55c022350fde
branches:  trunk
changeset: 621387:55c022350fde
user:      rodent <rodent%pkgsrc.org@localhost>
date:      Mon Jul 08 00:56:45 2013 +0000

description:
Fix build on SunOS. Add patch to define bswap_32(x) and bswap_64(x).

diffstat:

 textproc/cityhash/distinfo                  |   3 ++-
 textproc/cityhash/patches/patch-src_city.cc |  18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 333a1fdd99fd -r 55c022350fde textproc/cityhash/distinfo
--- a/textproc/cityhash/distinfo        Sun Jul 07 23:47:40 2013 +0000
+++ b/textproc/cityhash/distinfo        Mon Jul 08 00:56:45 2013 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2013/07/02 11:22:21 rodent Exp $
+$NetBSD: distinfo,v 1.2 2013/07/08 00:56:45 rodent Exp $
 
 SHA1 (cityhash-1.1.1.tar.gz) = 74342b9161bc762e4c14627a9281bef2d3cb5eed
 RMD160 (cityhash-1.1.1.tar.gz) = bac8c85686a8153afcc1defd3c93021b1da56f40
 Size (cityhash-1.1.1.tar.gz) = 376456 bytes
+SHA1 (patch-src_city.cc) = 9319333f53808ca6396876630c5d2c08bca15f79
diff -r 333a1fdd99fd -r 55c022350fde textproc/cityhash/patches/patch-src_city.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/cityhash/patches/patch-src_city.cc       Mon Jul 08 00:56:45 2013 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_city.cc,v 1.1 2013/07/08 00:56:45 rodent Exp $
+
+Add support for SunOS.
+
+--- src/city.cc.orig   2013-06-17 19:45:57.000000000 +0000
++++ src/city.cc
+@@ -69,6 +69,11 @@ static uint32 UNALIGNED_LOAD32(const cha
+ #define bswap_64(x) bswap64(x)
+ #endif
+ 
++#elif defined(__sun)
++#include <sys/byteorder.h>
++#define bswap_32(x) htonl(x)
++#define bswap_64(x) htonll(x)
++
+ #else
+ 
+ #include <byteswap.h>



Home | Main Index | Thread Index | Old Index