diff options
author | Jason E. Hale <jhale@FreeBSD.org> | 2016-11-21 12:27:15 +0000 |
---|---|---|
committer | Jason E. Hale <jhale@FreeBSD.org> | 2016-11-21 12:27:15 +0000 |
commit | ca6f71fa4bb0c72d596ce3087a198f7ea00cfff3 (patch) | |
tree | adf9f0a3be42098cdc7ca003b582ebb3b21a3284 /security/gpgme | |
parent | d5aa55e33e5aefd498884b71b84748187121e382 (diff) | |
download | ports-ca6f71fa4bb0c72d596ce3087a198f7ea00cfff3.tar.gz ports-ca6f71fa4bb0c72d596ce3087a198f7ea00cfff3.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
Notes
Notes:
svn path=/head/; revision=426708
Diffstat (limited to 'security/gpgme')
-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 + { |