Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 2023 16:49:11 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f86ffe46ea23 - main - comms/flwrap: Fix build on 14 wityh clang-16
Message-ID:  <202307161649.36GGnBiT095858@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307161649.36GGnBiT095858>