void-packages/srcpkgs/elogind/patches/SEEK_DATA.patch

27 lines
573 B
Diff

Upstream:no
Our musl version doesn't expose the SEEK_DATA and SEEK_HOLE in `unisted.h`...
Only version >= 1.2.3 do that.
---
src/shared/copy.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/shared/copy.h b/src/shared/copy.h
index a34a87c..d258afc 100644
--- a/src/shared/copy.h
+++ b/src/shared/copy.h
@@ -79,3 +79,11 @@ static inline int copy_rights(int fdf, int fdt) {
}
int copy_xattr(int fdf, int fdt, CopyFlags copy_flags);
#endif // 0
+
+#ifndef SEEK_DATA
+#define SEEK_DATA 3
+#endif
+
+#ifndef SEEK_HOLE
+#define SEEK_HOLE 4
+#endif
--
2.42.0