]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
test_sysinfo; fix fsopen() ifdef
authorKarel Zak <kzak@redhat.com>
Wed, 21 Aug 2024 13:26:07 +0000 (15:26 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Jan 2025 12:57:43 +0000 (13:57 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/helpers/test_sysinfo.c

index b900a154723b2d09093dd04342bc3421f609b8db..76983bce657e88a899031b26b86aa5fbe0fef245 100644 (file)
@@ -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