diff options
author | jhale <jhale@FreeBSD.org> | 2016-11-21 20:27:15 +0800 |
---|---|---|
committer | jhale <jhale@FreeBSD.org> | 2016-11-21 20:27:15 +0800 |
commit | 119b12c52277e315be881b499cc563067b3c8f1c (patch) | |
tree | adf9f0a3be42098cdc7ca003b582ebb3b21a3284 | |
parent | 035e52a0f70a15d9a843e0e8e51064bd8cf03932 (diff) | |
download | freebsd-ports-gnome-119b12c52277e315be881b499cc563067b3c8f1c.tar.gz freebsd-ports-gnome-119b12c52277e315be881b499cc563067b3c8f1c.tar.zst freebsd-ports-gnome-119b12c52277e315be881b499cc563067b3c8f1c.zip |
Fix build of security/gpgme-qt5 with gcc49
In file included from qgpgmebackend.cpp:42:0:
../../../lang/cpp/src/engineinfo.h: In constructor
'GpgME::EngineInfo::Version::Version(const string&)':
../../../lang/cpp/src/engineinfo.h:47:17: error: 'sscanf' is not a
member of 'std'
std::sscanf(version.c_str(), "%d.%d.%d", &major, &minor, &patch) != 3) {
PR: 214687
Submitted by: tcberner
-rw-r--r-- | security/gpgme/files/patch-lang_cpp_src_engineinfo.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/security/gpgme/files/patch-lang_cpp_src_engineinfo.h b/security/gpgme/files/patch-lang_cpp_src_engineinfo.h new file mode 100644 index 000000000000..38cd5c3bd9c7 --- /dev/null +++ b/security/gpgme/files/patch-lang_cpp_src_engineinfo.h @@ -0,0 +1,17 @@ +In file included from qgpgmebackend.cpp:42:0: +../../../lang/cpp/src/engineinfo.h: In constructor 'GpgME::EngineInfo::Version::Version(const string&)': +../../../lang/cpp/src/engineinfo.h:47:17: error: 'sscanf' is not a member of 'std' + std::sscanf(version.c_str(), "%d.%d.%d", &major, &minor, &patch) != 3) { + ^ + + +--- lang/cpp/src/engineinfo.h.orig 2016-11-20 11:59:52 UTC ++++ lang/cpp/src/engineinfo.h +@@ -30,6 +30,7 @@ + #include <algorithm> + #include <string> + #include <iostream> ++#include <cstdio> + + namespace GpgME + { |