diff options
author | Daniel Mack <github@zonque.org> | 2016-03-29 10:35:07 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-03-29 10:35:07 +0200 |
commit | 86a42315536d865bbde5d04414a9764090437cc0 (patch) | |
tree | b2bc463b1af0915df499baac9dca7b845e28d563 /src/shared/gcrypt-util.c | |
parent | 038e2619110d741e295a46550d4d80cf1c431f99 (diff) | |
parent | b68f10bf1f7519e012da5e35fab3a57da7dc46d4 (diff) |
Merge pull request #2905 from keszybz/gcrypt-compilation
build-sys: fix build with libgrcypt disabled
Diffstat (limited to 'src/shared/gcrypt-util.c')
-rw-r--r-- | src/shared/gcrypt-util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/gcrypt-util.c b/src/shared/gcrypt-util.c index 4ff94520c3..39b544b6f0 100644 --- a/src/shared/gcrypt-util.c +++ b/src/shared/gcrypt-util.c @@ -19,10 +19,11 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ +#ifdef HAVE_GCRYPT #include <gcrypt.h> -#include "hexdecoct.h" #include "gcrypt-util.h" +#include "hexdecoct.h" void initialize_libgcrypt(bool secmem) { const char *p; @@ -67,3 +68,4 @@ int string_hashsum(const char *s, size_t len, int md_algorithm, char **out) { *out = enc; return 0; } +#endif |