git: f86ffe46ea23 - main - comms/flwrap: Fix build on 14 wityh clang-16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Jul 2023 16:49:11 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=f86ffe46ea23c823bb81930d62daae88184bc065 commit f86ffe46ea23c823bb81930d62daae88184bc065 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-07-16 16:48:07 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-07-16 16:49:08 +0000 comms/flwrap: Fix build on 14 wityh clang-16 ... that was failing with the error: > error: reference to 'byte' is ambiguous Reported by: fallout --- comms/flwrap/files/patch-src_include_base64.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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();