projects/aports·blob master · refs

15 lines · 491 B

1--- a/oslib/linux-blkzoned.c
2+++ b/oslib/linux-blkzoned.c
3@@ -26,8 +26,12 @@
4 #define BLKFINISHZONE _IOW(0x12, 136, struct blk_zone_range)
5 #endif
6 #include <linux/falloc.h>
7
8+#ifndef FALLOC_FL_ZERO_RANGE
9+#define FALLOC_FL_ZERO_RANGE 0x10 /* zero range of bytes */
10+#endif
11+
12 /*
13 * If the uapi headers installed on the system lacks zone capacity support,
14 * use our local versions. If the installed headers are recent enough to
15 * support zone capacity, do not redefine any structs.