aboutsummaryrefslogtreecommitdiff
path: root/util/alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/alloc.h')
-rw-r--r--util/alloc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/alloc.h b/util/alloc.h
index 4ed0053e2b4a..cb8d6b1bceb7 100644
--- a/util/alloc.h
+++ b/util/alloc.h
@@ -177,8 +177,11 @@ void alloc_set_id_cleanup(struct alloc_cache* alloc, void (*cleanup)(void*),
void* arg);
#ifdef UNBOUND_ALLOC_LITE
+# include <ldns/ldns.h>
# include <ldns/packet.h>
-# include <openssl/ssl.h>
+# ifdef HAVE_OPENSSL_SSL_H
+# include <openssl/ssl.h>
+# endif
# define malloc(s) unbound_stat_malloc_lite(s, __FILE__, __LINE__, __func__)
# define calloc(n,s) unbound_stat_calloc_lite(n, s, __FILE__, __LINE__, __func__)
# define free(p) unbound_stat_free_lite(p, __FILE__, __LINE__, __func__)