diff options
Diffstat (limited to 'include/blkdev.h')
-rw-r--r-- | include/blkdev.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/blkdev.h b/include/blkdev.h index 56a9c1f47..98efad681 100644 --- a/include/blkdev.h +++ b/include/blkdev.h @@ -34,7 +34,11 @@ #define BLKBSZSET _IOW(0x12,113,size_t) #define BLKGETSIZE64 _IOR(0x12,114,size_t) /* return device size in bytes (u64 *arg) */ -#endif /* BLKROSET */ +#endif /* BLKROSET && __linux__ */ + +#ifdef APPLE_DARWIN +#define BLKGETSIZE DKIOCGETBLOCKCOUNT32 +#endif /* block device topology ioctls, introduced in 2.6.32 */ #ifndef BLKIOMIN |