git: d4bd77095e68 - main - comms/flrig: Fix build on 14 with clang-16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Jul 2023 16:03:44 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=d4bd77095e68b94d239daab1bd7873b4566c64a4 commit d4bd77095e68b94d239daab1bd7873b4566c64a4 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-07-16 16:02:31 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-07-16 16:02:31 +0000 comms/flrig: Fix build on 14 with clang-16 A non-existent C++ feature std::ostringstream::streampos was used. Reported by: fallout --- comms/flrig/files/patch-src_main.cxx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/comms/flrig/files/patch-src_main.cxx b/comms/flrig/files/patch-src_main.cxx new file mode 100644 index 000000000000..ec83afcbd14c --- /dev/null +++ b/comms/flrig/files/patch-src_main.cxx @@ -0,0 +1,23 @@ +- fix build on 14 with clang-16 because std::ostringstream::streampos +- doesn't exist there. +- using the C++ standard std::streampos instead. + +--- src/main.cxx.orig 2023-07-16 15:55:45 UTC ++++ src/main.cxx +@@ -21,6 +21,7 @@ + #include "config.h" + + #include <stdlib.h> ++#include <ios> + #include <iostream> + #include <fstream> + #include <sstream> +@@ -313,7 +314,7 @@ void rotate_log(std::string filename) + { + const int n = 5; // rename existing log files to keep up to 5 old versions + ostringstream oldfn, newfn; +- ostringstream::streampos p; ++ streampos p; + + oldfn << filename << '.'; + newfn << filename << '.';