Blame SOURCES/0711-cryptsetup-do-not-define-arg_sector_size-if-libgcryp.patch

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