From: Karel Zak Date: Wed, 9 Jun 2021 14:12:13 +0000 (+0200) Subject: libblkid: check for ioctl macro rather than for header file X-Git-Tag: v2.38-rc1~468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60d1f1a329922bdbf6ea6e75bcb08131681dbfe4;p=thirdparty%2Futil-linux.git libblkid: check for ioctl macro rather than for header file 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 --- 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;