From: Karel Zak Date: Wed, 21 Aug 2024 13:26:07 +0000 (+0200) Subject: test_sysinfo; fix fsopen() ifdef X-Git-Tag: v2.42-start~97^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=628fd4943389df779bc9b960714b1e9054c055a7;p=thirdparty%2Futil-linux.git test_sysinfo; fix fsopen() ifdef Signed-off-by: Karel Zak --- 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