Index: src/pound.c
--- src/pound.c.orig
+++ src/pound.c
@@ -22,6 +22,8 @@
 #include "extern.h"
 #include "watcher.h"
 
+#include <openssl/rand.h>
+
 /* common variables */
 char *user;			/* user to run as */
 char *group;			/* group to run as */
@@ -176,7 +178,7 @@ pound_uptime (void)
 /*
  * OpenSSL thread support stuff
  */
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
 #define l_init()
 #else
 static pthread_mutex_t *l_array;
