From b7b6fb802d6ff2822ee084278326de6f4646da7d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Thu, 22 Aug 2019 16:51:05 -0400
Subject: [PATCH] http: header cleanup

---
 include/opendht/http.h | 8 +++++++-
 src/http.cpp           | 1 +
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/include/opendht/http.h b/include/opendht/http.h
index d131d0d5..71a9d78b 100644
--- a/include/opendht/http.h
+++ b/include/opendht/http.h
@@ -25,8 +25,8 @@
 #include <asio/ssl.hpp>
 
 #include <restinio/all.hpp>
-#include <restinio/impl/tls_socket.hpp>
 
+#include <memory>
 #include <queue>
 
 extern "C" {
@@ -34,6 +34,12 @@ struct http_parser;
 struct http_parser_settings;
 }
 
+namespace restinio {
+namespace impl {
+class tls_socket_t;
+}
+}
+
 namespace dht {
 struct Logger;
 
diff --git a/src/http.cpp b/src/http.cpp
index a0db8eef..c0a6b831 100644
--- a/src/http.cpp
+++ b/src/http.cpp
@@ -20,6 +20,7 @@
 #include "log_enable.h"
 #include "crypto.h"
 
+#include <restinio/impl/tls_socket.hpp>
 #include <http_parser.h>
 
 namespace dht {
-- 
GitLab