aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-04-15 11:38:46 -0400
committerJack Lloyd <[email protected]>2017-04-15 11:38:55 -0400
commitf55d16ce41e9d56fd134bc957e094d6ff67e3e63 (patch)
tree3cccd0d399fc472ac93096c9aee4541e80a71006 /src/lib/ffi
parentca72e257107fb17075ccad5eca264110bc46d572 (diff)
Guard include of ElGamal header
Diffstat (limited to 'src/lib/ffi')
-rw-r--r--src/lib/ffi/ffi.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp
index 8e341d83d..b888cc0d6 100644
--- a/src/lib/ffi/ffi.cpp
+++ b/src/lib/ffi/ffi.cpp
@@ -26,7 +26,6 @@
#include <botan/reducer.h>
#include <botan/numthry.h>
#include <botan/divide.h>
-#include <botan/elgamal.h>
#include <cstring>
#include <memory>
@@ -34,6 +33,10 @@
#include <botan/rsa.h>
#endif
+#if defined(BOTAN_HAS_ELGAMAL)
+ #include <botan/elgamal.h>
+#endif
+
#if defined(BOTAN_HAS_DSA)
#include <botan/dsa.h>
#endif