hdparm,fdisk: reinstate BLKGETSIZE64 #defines. No code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ed4ff0e8cb
commit
af3fd14e4d
@ -15,6 +15,9 @@
|
|||||||
/* must be _after_ libbb.h: */
|
/* must be _after_ libbb.h: */
|
||||||
#include <linux/hdreg.h>
|
#include <linux/hdreg.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
#if !defined(BLKGETSIZE64)
|
||||||
|
# define BLKGETSIZE64 _IOR(0x12,114,size_t)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* device types */
|
/* device types */
|
||||||
/* ------------ */
|
/* ------------ */
|
||||||
|
@ -9,13 +9,16 @@
|
|||||||
|
|
||||||
#ifndef _LARGEFILE64_SOURCE
|
#ifndef _LARGEFILE64_SOURCE
|
||||||
/* For lseek64 */
|
/* For lseek64 */
|
||||||
#define _LARGEFILE64_SOURCE
|
# define _LARGEFILE64_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#include <assert.h> /* assert */
|
#include <assert.h> /* assert */
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#if !defined(BLKSSZGET)
|
#if !defined(BLKSSZGET)
|
||||||
# define BLKSSZGET _IO(0x12, 104)
|
# define BLKSSZGET _IO(0x12, 104)
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(BLKGETSIZE64)
|
||||||
|
# define BLKGETSIZE64 _IOR(0x12,114,size_t)
|
||||||
|
#endif
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
/* Looks like someone forgot to add this to config system */
|
/* Looks like someone forgot to add this to config system */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user