]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup: do not define arg_sector_size if libgcrypt is v1.x (#9990)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 1 Sep 2018 14:47:46 +0000 (23:47 +0900)
committerGitHub <noreply@github.com>
Sat, 1 Sep 2018 14:47:46 +0000 (23:47 +0900)
Follow-up for #9936.

src/cryptsetup/cryptsetup.c

index 92f7042636350fd9603b7484afa3f94da77ef782..a622db849b3714d2fdf4b1b3a97c3cbd85ad427c 100644 (file)
@@ -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;