diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-10 19:35:06 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-10 19:35:06 +0200 |
commit | 07f01d1ab5e68fc042356fd90fa07c199791b29c (patch) | |
tree | 89860e4e85ee49931b4193255de0a2032d94392e /server.cpp | |
parent | da2666726e48a3dc00f05589cdf4947f22deb3c3 (diff) |
Ported to Debian 10
Diffstat (limited to 'server.cpp')
-rw-r--r-- | server.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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> |