mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Avoid conflicts with the 2.6 kernel headers, which define
_IOR rather differently, thereby breaking the BLKGETSIZE64 ioctl. -Erik
This commit is contained in:
parent
e6dc439b3a
commit
f6067beaa9
@ -55,6 +55,11 @@
|
||||
#define BLKGETSIZE _IO(0x12,96) /* return device size */
|
||||
#define BLKFLSBUF _IO(0x12,97) /* flush buffer cache */
|
||||
#define BLKSSZGET _IO(0x12,104) /* get block device sector size */
|
||||
|
||||
/* Avoid conflicts with the 2.6 kernel headers, which define
|
||||
* _IOR rather differently */
|
||||
#undef _IOR
|
||||
#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
|
||||
#define BLKGETSIZE64 _IOR(0x12,114,8) /* 8 = sizeof(u64) */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user