From 628fd4943389df779bc9b960714b1e9054c055a7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 Aug 2024 15:26:07 +0200 Subject: [PATCH] test_sysinfo; fix fsopen() ifdef Signed-off-by: Karel Zak --- tests/helpers/test_sysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index b900a1547..76983bce6 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -130,7 +130,7 @@ static int hlp_enotty_ok(void) static int hlp_fsopen_ok(void) { -#ifdef FSOPEN_CLOEXEC +#if defined(HAVE_FSOPEN) && defined(FSOPEN_CLOEXEC) errno = 0; fsopen(NULL, FSOPEN_CLOEXEC); #else -- 2.47.3