master - device: Fix BLKSSZGET definition check.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d1bcdd7338148a887aae44149e3ea756c1df17a3 Commit: d1bcdd7338148a887aae44149e3ea756c1df17a3 Parent: 22a6b0e40b302b333f9bd995c0b81b0146e8232a Author: Alasdair G Kergon <[email protected]> AuthorDate: Mon Oct 13 18:15:41 2014 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Mon Oct 13 18:15:41 2014 +0100
device: Fix BLKSSZGET definition check.
--- lib/device/dev-io.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/device/dev-io.c +1 -1
@@ -154,7 +154,7 @@ int dev_get_block_size(struct device *dev, unsigned int *physical_block_size, un }log_debug_devs ("%s: physical block size is %u bytes" , name, dev->phys_block_size); } -#elif BLKSSZGET +#elif defined (BLKSSZGET)/* if we can't get physical block size, just use logical block size instead */ if (dev->phys_block_size ==-1 ) {if (ioctl (dev_fd (dev),BLKSSZGET , &dev->phys_block_size) <0 ) {