HomeFreeBSD

Provide loff_t via <fcntl.h> on musl-based Linux systems

Description

Provide loff_t via <fcntl.h> on musl-based Linux systems

Musl exposes loff_t only as a macro in <fcntl.h> when _GNU_SOURCE is
defined. Including <fcntl.h> ensures the type is available, and a
fallback typedef is provided when no macro is defined. This fixes build
failures on musl systems.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: Alexander Moch <mail@alexmoch.com>
Closes #18002

Details

Provenance
Alexander Moch <github@alexanderjulian.de>Authored on Dec 2 2025, 8:14 PM
GitHub <noreply@github.com>Committed on Dec 2 2025, 8:14 PM
Parents
rGffaea0831973: FreeBSD: Remove HAVE_INLINE_FLSL use
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG05e2747bf2ab: Provide loff_t via <fcntl.h> on musl-based Linux systems (authored by Alexander Moch <github@alexanderjulian.de>).Dec 2 2025, 8:14 PM