projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6dc439
)
Avoid conflicts with the 2.6 kernel headers, which define
author
Eric Andersen
<andersen@codepoet.org>
Mon, 3 Nov 2003 08:59:51 +0000
(08:59 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Mon, 3 Nov 2003 08:59:51 +0000
(08:59 -0000)
_IOR rather differently, thereby breaking the BLKGETSIZE64
ioctl.
-Erik
util-linux/fdisk.c
patch
|
blob
|
history
diff --git
a/util-linux/fdisk.c
b/util-linux/fdisk.c
index 02c5c10ff134ed435a0128a1038f94117976731d..6c28e02ec7505ff76add149a6d01e735e3c6f955 100644
(file)
--- a/
util-linux/fdisk.c
+++ b/
util-linux/fdisk.c
@@
-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) */
/*