[MacPorts] #65361: encfs 1.9.5_2: error: no matching constructor for initialization of 'std::shared_ptr<AbstractCipherKey>'
MacPorts
noreply at macports.org
Mon Aug 22 03:50:47 UTC 2022
#65361: encfs 1.9.5_2: error: no matching constructor for initialization of
'std::shared_ptr<AbstractCipherKey>'
------------------------------+--------------------
Reporter: MichaelJFischer | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: encfs |
------------------------------+--------------------
Comment (by mouse07410):
Here's the fix:
{{{
diff --git a/encfs/NullCipher.cpp b/encfs/NullCipher.cpp
index 50dadff..5e1a472 100644
--- a/encfs/NullCipher.cpp
+++ b/encfs/NullCipher.cpp
@@ -76,7 +76,7 @@ class NullDestructor {
NullDestructor &operator=(const NullDestructor &) = delete; // copy
assignment
NullDestructor& operator=(NullDestructor&& other) = delete; // move
assignment
- void operator()(NullKey *&) {}
+ void operator()(NullKey *) {}
};
std::shared_ptr<AbstractCipherKey> gNullKey(new NullKey(),
NullDestructor());
diff --git a/encfs/main.cpp b/encfs/main.cpp
index 71dfd71..26b4a68 100644
--- a/encfs/main.cpp
+++ b/encfs/main.cpp
@@ -28,6 +28,10 @@
#include <pthread.h>
#include <sstream>
#include <string>
+#ifdef __APPLE__
+#include <sys/mount.h>
+#include <sys/param.h>
+#endif
#ifdef __CYGWIN__
#include <sys/cygwin.h>
#endif
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65361#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list