diff options
author | Karel Zak | 2012-07-24 14:06:25 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-24 14:06:25 +0200 |
commit | 9199f5cd0a1926e7a9e02bd47dd8046374cf8840 (patch) | |
tree | 68b51320916461e4c9ce32a86620a1fc485c3dbf /include/c.h | |
parent | fdisk: don't ignore 1MiB granularity on 512-byte sector devices (diff) | |
download | kernel-qcow2-util-linux-9199f5cd0a1926e7a9e02bd47dd8046374cf8840.tar.gz kernel-qcow2-util-linux-9199f5cd0a1926e7a9e02bd47dd8046374cf8840.tar.xz kernel-qcow2-util-linux-9199f5cd0a1926e7a9e02bd47dd8046374cf8840.zip |
dmesg: add fileback for SEEK_DATA
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/c.h')
-rw-r--r-- | include/c.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/c.h b/include/c.h index 40d289bf7..64c0138f2 100644 --- a/include/c.h +++ b/include/c.h @@ -9,6 +9,7 @@ #include <stddef.h> #include <stdint.h> #include <stdio.h> +#include <unistd.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> @@ -255,4 +256,14 @@ static inline int dirfd(DIR *d) #define UL_SCNsA "%as" #endif +/* + * seek stuff + */ +#ifndef SEEK_DATA +# define SEEK_DATA 3 +#endif +#ifndef SEEK_HOLE +# define SEEK_HOLE 4 +#endif + #endif /* UTIL_LINUX_C_H */ |