xref: /dragonfly/contrib/cryptsetup/lib/blockdev.h (revision ef2b2b9d)
1 #ifndef BLOCKDEV_H
2 #define BLOCKDEV_H
3 
4 #ifdef HAVE_CONFIG_H
5 #	include "config.h"
6 #endif
7 #include <unistd.h>
8 #include <asm/types.h>
9 #include <sys/ioctl.h>
10 #include <sys/mount.h>
11 
12 #if defined(__linux__) && defined(_IOR) && !defined(BLKGETSIZE64)
13 #	define BLKGETSIZE64	_IOR(0x12, 114, size_t)
14 #endif
15 
16 #endif /* BLOCKDEV_H */
17