From: Pino Toscano Date: Sun, 7 Jul 2024 07:08:06 +0000 (+0200) Subject: tests: include only on Linux X-Git-Tag: v2.42-start~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7eef7df264aa704e1dd8c1ebe373103bf8bd569;p=thirdparty%2Futil-linux.git 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 --- 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"