HomeFreeBSD

Use <fcntl.h> instead of <sys/fcntl.h>

Description

Use <fcntl.h> instead of <sys/fcntl.h>

When building on musl, we get:

In file included from tests/zfs-tests/cmd/getversion.c:22:
/usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect
 #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]
 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>

In file included from module/os/linux/zfs/vdev_file.c:36:
/usr/include/sys/fcntl.h:1:2: error: #warning redirecting incorrect
 #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]
 1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>

Bug: https://bugs.gentoo.org/925235
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Sam James <sam@gentoo.org>
Closes #15925

Details

Provenance
Sam James <sam@gentoo.org>Authored on Nov 7 2024, 7:20 PM
Tony Hutter <hutter2@llnl.gov>Committed on May 27 2025, 9:56 PM
Parents
rGb800ad856ef9: Fix zoneid when USER_NS is disabled
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG3d087fde6e96: Use <fcntl.h> instead of <sys/fcntl.h> (authored by Sam James <sam@gentoo.org>).May 27 2025, 9:56 PM