From: Thomas Weißschuh Date: Sun, 24 Dec 2023 10:47:02 +0000 (+0100) Subject: fdisk: guard posix variable X-Git-Tag: v2.40-rc1~92^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2f069d58437b6741c4b26f5f4da65c8c6375b9c;p=thirdparty%2Futil-linux.git fdisk: guard posix variable Otherwise it can generate a unused variable warning. Signed-off-by: Thomas Weißschuh --- diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c index 86d17dbf1e..19fb87ff79 100644 --- a/sys-utils/fallocate.c +++ b/sys-utils/fallocate.c @@ -290,7 +290,9 @@ int main(int argc, char **argv) int fd; int mode = 0; int dig = 0; - int posix = 0; +#ifdef HAVE_POSIX_FALLOCATE + int posix = 0; +#endif loff_t length = -2LL; loff_t offset = 0;