mirror_zfs/lib/libspl/include
Alexander Moch 05e2747bf2
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
2025-12-02 12:14:09 -08:00
..
os libspl: common sysmacros.h 2025-11-12 10:02:25 -08:00
rpc SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
sys Provide loff_t via <fcntl.h> on musl-based Linux systems 2025-12-02 12:14:09 -08:00
assert.h Cleanup VERIFY() macros (#17163) 2025-04-16 09:01:32 -07:00
atomic.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libgen.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libshare.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
libspl.h libspl: init/fini 2025-11-12 10:01:08 -08:00
Makefile.am debug: move all of the debug bits out of the spl 2025-11-12 10:02:51 -08:00
statcommon.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
stdlib.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
string.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
umem.h libspl: move kmem definitions from zfs_context.h 2025-11-12 10:00:17 -08:00
unistd.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zone.h SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00