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