]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: check for ioctl macro rather than for header file
authorKarel Zak <kzak@redhat.com>
Wed, 9 Jun 2021 14:12:13 +0000 (16:12 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Jun 2021 14:12:13 +0000 (16:12 +0200)
commit60d1f1a329922bdbf6ea6e75bcb08131681dbfe4
treecea54c41145a655978cc45b01b6dbfa9dd5882e0
parent366063645f9af34faf106058b89699cb77f858e5
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 <kzak@redhat.com>
libblkid/src/probe.c