void-packages/srcpkgs/zfs/patches/0002-fix-seektest-musl.patch

31 lines
822 B
Diff

From 4c2cd2ce45caf8374733fb97643f2f0060cacec2 Mon Sep 17 00:00:00 2001
From: Zach Dykstra <dykstra.zachary@gmail.com>
Date: Thu, 22 Feb 2024 16:31:02 -0600
Subject: [PATCH] zfs-tests: fix seekflood.c on MUSL
---
tests/zfs-tests/tests/functional/cp_files/seekflood.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/zfs-tests/tests/functional/cp_files/seekflood.c b/tests/zfs-tests/tests/functional/cp_files/seekflood.c
index 02c2c8e6e..d3116d9fd 100644
--- a/tests/zfs-tests/tests/functional/cp_files/seekflood.c
+++ b/tests/zfs-tests/tests/functional/cp_files/seekflood.c
@@ -27,6 +27,14 @@
#define _GNU_SOURCE
#endif
+#ifndef SEEK_DATA
+#define SEEK_DATA 3
+#endif
+
+#ifndef SEEK_HOLE
+#define SEEK_HOLE 4
+#endif
+
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
--
2.43.2