summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/c.h11
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 */