From b7eef7df264aa704e1dd8c1ebe373103bf8bd569 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 7 Jul 2024 09:08:06 +0200 Subject: [PATCH] tests: include only on Linux Include only on Linux; it is used for fsopen(), which is available only on Linux. Signed-off-by: Pino Toscano --- tests/helpers/test_sysinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index 058afc24f..362466a6a 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -27,7 +27,9 @@ #include #include #include -#include +#ifdef __linux__ +# include +#endif #include "mount-api-utils.h" -- 2.47.3