hdparm,fdisk: reinstate BLKGETSIZE64 #defines. No code changes
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 22 Sep 2009 21:16:39 +0000 (23:16 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 22 Sep 2009 21:16:39 +0000 (23:16 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/hdparm.c
util-linux/fdisk.c

index 60682231adf9d30d1acfac51e989f05cc172c61f..0917b41758c0db88d7c9610adc0771d72af6df3a 100644 (file)
@@ -15,6 +15,9 @@
 /* must be _after_ libbb.h: */
 #include <linux/hdreg.h>
 #include <sys/mount.h>
+#if !defined(BLKGETSIZE64)
+# define BLKGETSIZE64 _IOR(0x12,114,size_t)
+#endif
 
 /* device types */
 /* ------------ */
index e50ee77d15bcc8acb2fa4b0fbbe85028f98cff14..1bb3a9d4e72c908d8ce8a630c799e13eecf8188f 100644 (file)
@@ -9,13 +9,16 @@
 
 #ifndef _LARGEFILE64_SOURCE
 /* For lseek64 */
-#define _LARGEFILE64_SOURCE
+# define _LARGEFILE64_SOURCE
 #endif
 #include <assert.h>             /* assert */
 #include <sys/mount.h>
 #if !defined(BLKSSZGET)
 # define BLKSSZGET _IO(0x12, 104)
 #endif
+#if !defined(BLKGETSIZE64)
+# define BLKGETSIZE64 _IOR(0x12,114,size_t)
+#endif
 #include "libbb.h"
 
 /* Looks like someone forgot to add this to config system */