aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-07-16 16:48:07 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-07-16 16:49:08 +0000
commitf86ffe46ea23c823bb81930d62daae88184bc065 (patch)
treeefbea38b548a3171c23ba54d90f9df65ee9f41b6
parent6d1234fdc66cdea06283009a6c043fa5fbabdc62 (diff)
downloadports-f86ffe46ea23c823bb81930d62daae88184bc065.tar.gz
ports-f86ffe46ea23c823bb81930d62daae88184bc065.zip
comms/flwrap: Fix build on 14 wityh clang-16
... that was failing with the error: > error: reference to 'byte' is ambiguous Reported by: fallout
-rw-r--r--comms/flwrap/files/patch-src_include_base64.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/comms/flwrap/files/patch-src_include_base64.h b/comms/flwrap/files/patch-src_include_base64.h
new file mode 100644
index 000000000000..5e088c997517
--- /dev/null
+++ b/comms/flwrap/files/patch-src_include_base64.h
@@ -0,0 +1,16 @@
+- fix the error: ./include/base64.h:24:2: error: reference to 'byte' is ambiguous
+- the alternative 'byte' definition is std::byte
+
+--- src/include/base64.h.orig 2023-07-16 16:44:53 UTC
++++ src/include/base64.h
+@@ -21,8 +21,8 @@ class base64 { (private)
+ size_t iolen;
+ size_t iocp;
+ bool ateof;
+- byte dtable[256];
+- byte etable[256];
++ ::byte dtable[256];
++ ::byte etable[256];
+ int linelength;
+ bool crlf;
+ void init();