diff options
author | Tim Kientzle <kientzle@acm.org> | 2016-01-19 05:32:56 -0800 |
---|---|---|
committer | Tim Kientzle <kientzle@acm.org> | 2016-01-19 05:32:56 -0800 |
commit | 48e40df7b13d317a21de78fc84a2eeca32c46068 (patch) | |
tree | 4d03421abd7a0cd959e72d43aa00a779eece60ca /libarchive/archive_cryptor_private.h | |
parent | d32bbe4f32a8fd00ec3b637cfbed2bdbbcfd05c5 (diff) | |
download | libarchive-48e40df7b13d317a21de78fc84a2eeca32c46068.tar.gz |
Fix nettle library probe
= Only use it if we can find the library *and* the headers
= When probing the library, try to link a function that's
actually in the library (not 'main')
Diffstat (limited to 'libarchive/archive_cryptor_private.h')
-rw-r--r-- | libarchive/archive_cryptor_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_cryptor_private.h b/libarchive/archive_cryptor_private.h index 9a96aeea..f629bc13 100644 --- a/libarchive/archive_cryptor_private.h +++ b/libarchive/archive_cryptor_private.h @@ -72,7 +72,7 @@ typedef struct { unsigned encr_pos; } archive_crypto_ctx; -#elif defined(HAVE_LIBNETTLE) +#elif defined(HAVE_LIBNETTLE) && defined(HAVE_NETTLE_AES_H) #if defined(HAVE_NETTLE_PBKDF2_H) #include <nettle/pbkdf2.h> #endif |