opnsense-ports/security/gpgme/files/patch-lang_cpp_src_engineinfo.h
Franco Fichtner a0a114d926 */*: sync with upstream
Taken from: HardenedBSD
2018-01-26 19:46:35 +01:00

17 lines
555 B
C++

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 2017-10-04 15:17:16 UTC
+++ lang/cpp/src/engineinfo.h
@@ -32,6 +32,7 @@
#include <algorithm>
#include <string>
#include <iostream>
+#include <cstdio>
namespace GpgME
{