git: 0a4cf8ece050 - main - www/restbed: fix build on powerpc*

Piotr Kubaj pkubaj at FreeBSD.org
Sun Sep 12 21:12:38 UTC 2021


The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0a4cf8ece0500ca7f0bd47572413d031f7f68f1a

commit 0a4cf8ece0500ca7f0bd47572413d031f7f68f1a
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-09-12 21:05:57 +0000
Commit:     Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-09-12 21:05:57 +0000

    www/restbed: fix build on powerpc*
    
    powerpc* architectures use unsigned char by default.
---
 www/restbed/files/patch-source_corvusoft_restbed_uri.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/www/restbed/files/patch-source_corvusoft_restbed_uri.cpp b/www/restbed/files/patch-source_corvusoft_restbed_uri.cpp
new file mode 100644
index 000000000000..c4fa5a2cbc02
--- /dev/null
+++ b/www/restbed/files/patch-source_corvusoft_restbed_uri.cpp
@@ -0,0 +1,11 @@
+--- source/corvusoft/restbed/uri.cpp.orig	2021-09-11 00:09:45 UTC
++++ source/corvusoft/restbed/uri.cpp
+@@ -100,7 +100,7 @@ namespace restbed
+     
+     string Uri::decode( const string& value )
+     {
+-        static const char hex_to_dec[256] = 
++        static const signed char hex_to_dec[256] = 
+         {
+             /*       0  1  2  3   4  5  6  7   8  9  A  B   C  D  E  F */
+             /* 0 */ -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,


More information about the dev-commits-ports-main mailing list