From de2e9a5c6bb567aa87ea81b69a3491eb692bbbf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Salvador=20Rufo?= Date: Fri, 15 Nov 2024 09:56:12 +0900 Subject: [PATCH] tests: fix uClibc for getversion.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch fixes compilation with uClibc by applying the same fallback as commit e12d76176d4e5454db62eb48b58ecd4970838a76 to the `getversion.c` file, which was previously overlooked. Reviewed-by: Brian Behlendorf Signed-off-by: José Luis Salvador Rufo Closes #16735 Closes #16741 --- tests/zfs-tests/cmd/getversion.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/zfs-tests/cmd/getversion.c b/tests/zfs-tests/cmd/getversion.c index 1e026b92d17d..3626d1e968a3 100644 --- a/tests/zfs-tests/cmd/getversion.c +++ b/tests/zfs-tests/cmd/getversion.c @@ -19,9 +19,13 @@ */ #include +#ifdef _KERNEL +#include +#else +#include +#endif #include #include -#include #include #include #include