Fixed Linux compile.

This commit is contained in:
casey langen 2020-10-06 19:54:18 -07:00
parent b3c887f7ce
commit 3f0603656b
2 changed files with 8 additions and 4 deletions

View File

@ -34,7 +34,7 @@
#include "pch.hpp"
#include <core/net/WebSocketclient.h>
#include <core/net/WebSocketClient.h>
#include <core/library/query/AllCategoriesQuery.h>
#include <atomic>
#include <json.hpp>
@ -49,7 +49,7 @@ using Connection = WebSocketClient::Connection;
static const std::string sUri = "ws://127.0.0.1:7905";
static std::atomic<int> nextMessageId = 0;
static std::atomic<int> nextMessageId(0);
static inline std::string generateMessageId() {
return "integrated-websocket-client-" + std::to_string(nextMessageId.fetch_add(1));
@ -238,4 +238,4 @@ void WebSocketClient::SetState(State state) {
this->state = state;
this->listener->OnClientStateChanged(this, state, oldState);
}
}
}

View File

@ -34,6 +34,10 @@
#pragma once
/* curses defines a timeout() method that causes issues with
asio's streambuf. include it up front so work around this */
#include <boost/asio/basic_socket_streambuf.hpp>
#include <core/config.h>
#include <core/i18n/Locale.h>
#include <core/library/ILibrary.h>
@ -85,4 +89,4 @@
#include <boost/filesystem.hpp>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string.hpp>