From 60d1f1a329922bdbf6ea6e75bcb08131681dbfe4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 9 Jun 2021 16:12:13 +0200 Subject: [PATCH] libblkid: check for ioctl macro rather than for header file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit libblkid/src/probe.c:1012:22: error: ‘BLKGETZONESZ’ undeclared (first use in this function) 1012 | if (!ioctl(pr->fd, BLKGETZONESZ, &zone_size_sector)) | ^~~~~~~~~~~~ Signed-off-by: Karel Zak --- libblkid/src/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index 602559605f..9adc4cf763 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -1005,7 +1005,7 @@ int blkid_probe_set_device(blkid_probe pr, int fd, #endif free(dm_uuid); -# ifdef HAVE_LINUX_BLKZONED_H +# ifdef BLKGETZONESZ if (S_ISBLK(sb.st_mode)) { uint32_t zone_size_sector; -- 2.47.3