summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-27 18:22:04 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-27 18:22:04 +0100
commit69452cb695453da66cca82e3cff31348efcacce9 (patch)
treeaa5195115351156e79f13632f6676700ff3698a5
parentddb4831f065b6e539d33051fb4c94711e06ed72f (diff)
downloadfastd-69452cb695453da66cca82e3cff31348efcacce9.tar
fastd-69452cb695453da66cca82e3cff31348efcacce9.zip
Don't include linux/if_alg.h when it is not needed
-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