pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/nss nss: Support SunOS byteswap macros.
details: https://anonhg.NetBSD.org/pkgsrc/rev/40bb03539663
branches: trunk
changeset: 370573:40bb03539663
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Thu Oct 19 15:28:45 2017 +0000
description:
nss: Support SunOS byteswap macros.
diffstat:
devel/nss/distinfo | 3 +-
devel/nss/patches/patch-nss_lib_freebl_verified_kremlib.h | 30 +++++++++++++++
2 files changed, 32 insertions(+), 1 deletions(-)
diffs (49 lines):
diff -r 9a51ee811c60 -r 40bb03539663 devel/nss/distinfo
--- a/devel/nss/distinfo Thu Oct 19 14:29:01 2017 +0000
+++ b/devel/nss/distinfo Thu Oct 19 15:28:45 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.76 2017/09/26 10:59:39 ryoon Exp $
+$NetBSD: distinfo,v 1.77 2017/10/19 15:28:45 jperkin Exp $
SHA1 (nss-3.33.tar.gz) = 85d25795b01be3f4459707ce04e9bbed9e549865
RMD160 (nss-3.33.tar.gz) = fe4d2fb56f15db3531e0efbdff8eda4aced41a03
@@ -17,4 +17,5 @@
SHA1 (patch-nss_coreconf_OpenBSD.mk) = fccc17845c28f5b1268c96eb4e952e32dd530d1d
SHA1 (patch-nss_coreconf_command.mk) = 008f7670f164bf19555a7691f5a59fc8bf687078
SHA1 (patch-nss_lib_freebl_config.mk) = 5d374317b75c7db968a126f616bb396a012f675d
+SHA1 (patch-nss_lib_freebl_verified_kremlib.h) = a50ba4e027635b4342cf67d168c3a75ecefeb7b9
SHA1 (patch-security_nss_cmd_shlibsign_sign.sh) = 7948b7b502a4c148ee185836dde8a84d3aa388af
diff -r 9a51ee811c60 -r 40bb03539663 devel/nss/patches/patch-nss_lib_freebl_verified_kremlib.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/nss/patches/patch-nss_lib_freebl_verified_kremlib.h Thu Oct 19 15:28:45 2017 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-nss_lib_freebl_verified_kremlib.h,v 1.1 2017/10/19 15:28:45 jperkin Exp $
+
+Support SunOS byteswap macros.
+
+--- nss/lib/freebl/verified/kremlib.h.orig 2017-09-20 06:47:27.000000000 +0000
++++ nss/lib/freebl/verified/kremlib.h
+@@ -100,6 +100,23 @@ typedef void *Prims_pos, *Prims_nat, *Pr
+ #define htobe32(x) OSSwapHostToBigInt32(x)
+ #define be32toh(x) OSSwapBigToHostInt32(x)
+
++#elif defined(__sun__)
++#include <sys/byteorder.h>
++#define htole64(x) LE_64(x)
++#define le64toh(x) LE_IN64(x)
++#define htobe64(x) BE_64(x)
++#define be64toh(x) BE_IN64(x)
++
++#define htole16(x) LE_16(x)
++#define le16toh(x) LE_IN16(x)
++#define htobe16(x) BE_16(x)
++#define be16toh(x) BE_IN16(x)
++
++#define htole32(x) LE_32(x)
++#define le32toh(x) LE_IN32(x)
++#define htobe32(x) BE_32(x)
++#define be32toh(x) BE_IN32(x)
++
+ // ... for Windows
+ #elif (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && \
+ !defined(__WINDOWS__)
Home |
Main Index |
Thread Index |
Old Index