Pablo Greco 48fc63
From 12151731716c21b8e58f96faff7395454ae609b0 Mon Sep 17 00:00:00 2001
Pablo Greco 48fc63
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Pablo Greco 48fc63
Date: Sat, 1 Sep 2018 23:47:46 +0900
Pablo Greco 48fc63
Subject: [PATCH] cryptsetup: do not define arg_sector_size if libgcrypt is
Pablo Greco 48fc63
 v1.x (#9990)
Pablo Greco 48fc63
Pablo Greco 48fc63
Follow-up for #9936.
Pablo Greco 48fc63
Pablo Greco 48fc63
(cherry picked from commit 645461f0cf6ec91e5b0b571559fb4cc4898192bc)
Pablo Greco 48fc63
Pablo Greco 48fc63
Related: #1571801
Pablo Greco 48fc63
---
Pablo Greco 48fc63
 src/cryptsetup/cryptsetup.c | 2 ++
Pablo Greco 48fc63
 1 file changed, 2 insertions(+)
Pablo Greco 48fc63
Pablo Greco 48fc63
diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c
Pablo Greco 48fc63
index fd8b9ba9ec..8c69e428a3 100644
Pablo Greco 48fc63
--- a/src/cryptsetup/cryptsetup.c
Pablo Greco 48fc63
+++ b/src/cryptsetup/cryptsetup.c
Pablo Greco 48fc63
@@ -50,7 +50,9 @@
Pablo Greco 48fc63
 static const char *arg_type = NULL; /* ANY_LUKS, CRYPT_LUKS1, CRYPT_LUKS2, CRYPT_TCRYPT or CRYPT_PLAIN */
Pablo Greco 48fc63
 static char *arg_cipher = NULL;
Pablo Greco 48fc63
 static unsigned arg_key_size = 0;
Pablo Greco 48fc63
+#if HAVE_LIBCRYPTSETUP_SECTOR_SIZE
Pablo Greco 48fc63
 static unsigned arg_sector_size = CRYPT_SECTOR_SIZE;
Pablo Greco 48fc63
+#endif
Pablo Greco 48fc63
 static int arg_key_slot = CRYPT_ANY_SLOT;
Pablo Greco 48fc63
 static unsigned arg_keyfile_size = 0;
Pablo Greco 48fc63
 static unsigned arg_keyfile_offset = 0;