diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-12-20 12:55:49 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-12-20 12:55:49 +0000 |
commit | d37567133af65fbd15511f26ed7b62b85cdeaaba (patch) | |
tree | 130476984331453abcc6d5491637173d89d2594f /net-p2p | |
parent | 22bd0b07ea6511d7e6a5685c9ac0776e3d112ed3 (diff) |
net-p2p/litecoin: fix build on GCC architectures
Recent upgrade of some dependency causes GCC to fail to build this port:
httpserver.cpp:74:10: error: 'deque' in namespace 'std' does not name a template type
74 | std::deque<std::unique_ptr<WorkItem>> queue;
| ^~~~~
httpserver.cpp:33:1: note: 'std::deque' is defined in header '<deque>'; did you forget to '#include <deque>'?
32 | #include <support/events.h>
+++ |+#include <deque>
33 |
httpserver.cpp: In member function 'bool WorkQueue<WorkItem>::Enqueue(WorkItem*)':
httpserver.cpp:92:13: error: 'queue' was not declared in this scope; did you mean 'Enqueue'?
92 | if (queue.size() >= maxDepth) {
| ^~~~~
| Enqueue
httpserver.cpp:95:9: error: 'queue' was not declared in this scope; did you mean 'Enqueue'?
95 | queue.emplace_back(std::unique_ptr<WorkItem>(item));
| ^~~~~
| Enqueue
httpserver.cpp: In member function 'void WorkQueue<WorkItem>::Run()':
httpserver.cpp:106:35: error: 'queue' was not declared in this scope; did you mean 'Enqueue'?
106 | while (running && queue.empty())
| ^~~~~
| Enqueue
httpserver.cpp:110:31: error: 'queue' was not declared in this scope; did you mean 'Enqueue'?
110 | i = std::move(queue.front());
| ^~~~~
| Enqueue
Include deque in httpserver.c to fix it.
PR: 242722
Approved by: hsw@bitmark.com (maintainer)
Notes
Notes:
svn path=/head/; revision=520502
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/litecoin/files/patch-src_httpserver.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net-p2p/litecoin/files/patch-src_httpserver.cpp b/net-p2p/litecoin/files/patch-src_httpserver.cpp new file mode 100644 index 000000000000..08c722bba33b --- /dev/null +++ b/net-p2p/litecoin/files/patch-src_httpserver.cpp @@ -0,0 +1,10 @@ +--- src/httpserver.cpp.orig 2019-12-18 12:22:29 UTC ++++ src/httpserver.cpp +@@ -30,6 +30,7 @@ + #include <event2/keyvalq_struct.h> + + #include <support/events.h> ++#include <deque> + + #ifdef EVENT__HAVE_NETINET_IN_H + #include <netinet/in.h> |