From 89648a96386a03ebeb90c442dc921c0dc4e9df93 Mon Sep 17 00:00:00 2001 From: Kaian Date: Wed, 25 Feb 2015 14:10:40 +0100 Subject: [PATCH] Dont include some source files when OpenSSL is disabled --- configure.ac | 2 +- src/main.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1b63447..228d900 100644 --- a/configure.ac +++ b/configure.ac @@ -110,7 +110,7 @@ AS_IF([test "x$enable_openssl" == "xyes"], [ ], []) # Conditional Source inclusion -AM_CONDITIONAL([WITH_OPENSSL], [test "x$enable_openssl" != "xno"]) +AM_CONDITIONAL([WITH_OPENSSL], [test "x$enable_openssl" == "xyes"]) ###################################################################### diff --git a/src/main.c b/src/main.c index e8fc70d..334d327 100644 --- a/src/main.c +++ b/src/main.c @@ -84,7 +84,9 @@ main(int argc, char* argv[]) { int ret = 0, opt; +#ifdef WITH_OPENSSL const char *keyfile; +#endif //! BPF arguments filter char bpf[512];