summaryrefslogtreecommitdiffhomepage
path: root/server.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-10 19:35:06 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-10 19:35:06 +0200
commit07f01d1ab5e68fc042356fd90fa07c199791b29c (patch)
tree89860e4e85ee49931b4193255de0a2032d94392e /server.cpp
parentda2666726e48a3dc00f05589cdf4947f22deb3c3 (diff)
Ported to Debian 10
Diffstat (limited to 'server.cpp')
-rw-r--r--server.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/server.cpp b/server.cpp
index 47c50ac..26feabc 100644
--- a/server.cpp
+++ b/server.cpp
@@ -1,7 +1,19 @@
+#include <boost/beast/version.hpp>
+
+// Support both boost in Debian unstable (BOOST_LATEST) and in stable (boost 1.67)
+#if BOOST_VERSION >= 107100
+#define BOOST_LATEST
+#endif
+
#include <boost/beast/core.hpp>
#include <boost/beast/http.hpp>
#include <boost/beast/version.hpp>
+#ifdef BOOST_LATEST
#include <boost/beast/ssl.hpp>
+#else
+#include <boost/asio/ip/tcp.hpp>
+#include <boost/asio/ssl/stream.hpp>
+#endif
#include <boost/asio/dispatch.hpp>
#include <boost/asio/strand.hpp>
#include <boost/config.hpp>