summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crypto_linux.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/crypto_linux.c b/src/crypto_linux.c
index 0840074..b724cf8 100644
--- a/src/crypto_linux.c
+++ b/src/crypto_linux.c
@@ -28,13 +28,18 @@
#include "crypto.h"
#include <alloca.h>
-#include <linux/if_alg.h>
+#if (defined(USE_CRYPTO_AES128CTR) && defined(WITH_CRYPTO_AES128CTR_LINUX)) || (defined(USE_CRYPTO_GHASH) && defined(WITH_CRYPTO_GHASH_LINUX))
+
+#include <linux/if_alg.h>
+
#ifndef SOL_ALG
#define SOL_ALG 279
#endif
+#endif
+
#ifdef USE_CRYPTO_AES128CTR
#ifdef WITH_CRYPTO_AES128CTR_LINUX