summaryrefslogtreecommitdiff
path: root/net/libnipper/patches
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2022-08-05 14:50:29 +0000
committerhe <he@pkgsrc.org>2022-08-05 14:50:29 +0000
commitf023c0b7b4a2402cf5a65a7bae485377a34ae2be (patch)
treec13fde01edcaa746acc40b3305aa7bf7656227cd /net/libnipper/patches
parentd972fbd7a3bf1e8bc404d03ef988095634d2848d (diff)
downloadpkgsrc-f023c0b7b4a2402cf5a65a7bae485377a34ae2be.tar.gz
net/libnipper: make dependence on signed chars explicit.
This allows this package to build on NetBSD/powerpc. On signed-char platforms this should not cause any code change, so no revision bump.
Diffstat (limited to 'net/libnipper/patches')
-rw-r--r--net/libnipper/patches/patch-device_crypto_crypt-base64.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/libnipper/patches/patch-device_crypto_crypt-base64.cpp b/net/libnipper/patches/patch-device_crypto_crypt-base64.cpp
new file mode 100644
index 00000000000..0de489f932d
--- /dev/null
+++ b/net/libnipper/patches/patch-device_crypto_crypt-base64.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-device_crypto_crypt-base64.cpp,v 1.1 2022/08/05 14:50:29 he Exp $
+
+Make dependence on signed chars explicit, to allow build
+on NetBSD/powerpc where chars are unsigned unless qualified.
+
+--- device/crypto/crypto-base64.cpp.orig 2008-09-05 20:01:47.000000000 +0000
++++ device/crypto/crypto-base64.cpp
+@@ -36,7 +36,7 @@
+
+ // See RFC3548 for details of Base64 Encode / Decode standards
+
+-static const char base64string[] = {62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51};
++static const signed char base64string[] = {62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51};
+
+
+ // Base64 character check