mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
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
This commit is contained in:
parent
d5aa55e33e
commit
ca6f71fa4b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426708
17
security/gpgme/files/patch-lang_cpp_src_engineinfo.h
Normal file
17
security/gpgme/files/patch-lang_cpp_src_engineinfo.h
Normal file
@ -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
|
||||
{
|
Loading…
Reference in New Issue
Block a user