]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
dmesg: add fileback for SEEK_DATA
authorKarel Zak <kzak@redhat.com>
Tue, 24 Jul 2012 12:06:25 +0000 (14:06 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Jul 2012 12:06:25 +0000 (14:06 +0200)
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h

index 40d289bf7b65af8f84f348f4a055330c3e5b882a..64c0138f279108e17fc2bfbc61b6a3f7237e3cb6 100644 (file)
@@ -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 */