--- include/libtorrent/config.hpp.orig	2014-08-15 08:51:56.000000000 +0200
+++ include/libtorrent/config.hpp	2015-01-03 18:34:41.639761027 +0100
@@ -33,6 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
 #ifndef TORRENT_CONFIG_HPP_INCLUDED
 #define TORRENT_CONFIG_HPP_INCLUDED
 
+#include <openssl/rand.h>
 #include <boost/config.hpp>
 #include <boost/version.hpp>
 #include <stdio.h> // for snprintf
