summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-09-01 23:47:46 +0900
committerGitHub <noreply@github.com>2018-09-01 23:47:46 +0900
commit645461f0cf6ec91e5b0b571559fb4cc4898192bc (patch)
tree118e417256653f284344a49371f0a1947573ead5
parent0c09cb0e7828196aae02bf6949fab4bdc9f2b879 (diff)
downloadsystemd-645461f0cf6ec91e5b0b571559fb4cc4898192bc.tar.gz
cryptsetup: do not define arg_sector_size if libgcrypt is v1.x (#9990)
Follow-up for #9936.
-rw-r--r--src/cryptsetup/cryptsetup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c
index 92f7042636..a622db849b 100644
--- a/src/cryptsetup/cryptsetup.c
+++ b/src/cryptsetup/cryptsetup.c
@@ -31,7 +31,9 @@
static const char *arg_type = NULL; /* ANY_LUKS, CRYPT_LUKS1, CRYPT_LUKS2, CRYPT_TCRYPT or CRYPT_PLAIN */
static char *arg_cipher = NULL;
static unsigned arg_key_size = 0;
+#if HAVE_LIBCRYPTSETUP_SECTOR_SIZE
static unsigned arg_sector_size = CRYPT_SECTOR_SIZE;
+#endif
static int arg_key_slot = CRYPT_ANY_SLOT;
static unsigned arg_keyfile_size = 0;
static uint64_t arg_keyfile_offset = 0;