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