diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-22 23:16:39 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-22 23:16:39 +0200 |
commit | af3fd14e4df87d8af833d5e7b97d285b4d137d60 (patch) | |
tree | 56027df28b48904f3e06048034135848dcabd99c | |
parent | ed4ff0e8cbe8b330ecc9c51d0c5ff2ad1647ad5d (diff) | |
download | busybox-w32-af3fd14e4df87d8af833d5e7b97d285b4d137d60.tar.gz busybox-w32-af3fd14e4df87d8af833d5e7b97d285b4d137d60.tar.bz2 busybox-w32-af3fd14e4df87d8af833d5e7b97d285b4d137d60.zip |
hdparm,fdisk: reinstate BLKGETSIZE64 #defines. No code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/hdparm.c | 3 | ||||
-rw-r--r-- | util-linux/fdisk.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 60682231a..0917b4175 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -15,6 +15,9 @@ | |||
15 | /* must be _after_ libbb.h: */ | 15 | /* must be _after_ libbb.h: */ |
16 | #include <linux/hdreg.h> | 16 | #include <linux/hdreg.h> |
17 | #include <sys/mount.h> | 17 | #include <sys/mount.h> |
18 | #if !defined(BLKGETSIZE64) | ||
19 | # define BLKGETSIZE64 _IOR(0x12,114,size_t) | ||
20 | #endif | ||
18 | 21 | ||
19 | /* device types */ | 22 | /* device types */ |
20 | /* ------------ */ | 23 | /* ------------ */ |
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index e50ee77d1..1bb3a9d4e 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c | |||
@@ -9,13 +9,16 @@ | |||
9 | 9 | ||
10 | #ifndef _LARGEFILE64_SOURCE | 10 | #ifndef _LARGEFILE64_SOURCE |
11 | /* For lseek64 */ | 11 | /* For lseek64 */ |
12 | #define _LARGEFILE64_SOURCE | 12 | # define _LARGEFILE64_SOURCE |
13 | #endif | 13 | #endif |
14 | #include <assert.h> /* assert */ | 14 | #include <assert.h> /* assert */ |
15 | #include <sys/mount.h> | 15 | #include <sys/mount.h> |
16 | #if !defined(BLKSSZGET) | 16 | #if !defined(BLKSSZGET) |
17 | # define BLKSSZGET _IO(0x12, 104) | 17 | # define BLKSSZGET _IO(0x12, 104) |
18 | #endif | 18 | #endif |
19 | #if !defined(BLKGETSIZE64) | ||
20 | # define BLKGETSIZE64 _IOR(0x12,114,size_t) | ||
21 | #endif | ||
19 | #include "libbb.h" | 22 | #include "libbb.h" |
20 | 23 | ||
21 | /* Looks like someone forgot to add this to config system */ | 24 | /* Looks like someone forgot to add this to config system */ |