mirror_zfs/lib/libspl/include
Alexander Moch bbbf438d66
linux: use sys/stat.h instead of linux/stat.h
glibc includes linux/stat.h for statx, but musl defines its own statx
struct and associated constants, which does not include STATX_MNT_ID
yet. Thus, including linux/stat.h directly should be avoided for
maximum libc compatibility.

Tested on:
  - glibc: x86_64, i686, aarch64, armv7l, armv6l
  - musl: x86_64, aarch64, armv7l, armv6l

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Tested-By: Achill Gilgenast <achill@achill.org>

Closes #17675
(cherry picked from commit ccf5a8a6fc)

Signed-off-by: classabbyamp <dev@placeviolette.net>
Signed-off-by: Alexander Moch <mail@alexmoch.com>
Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com>
2025-12-09 11:58:45 -08:00
..
os linux: use sys/stat.h instead of linux/stat.h 2025-12-09 11:58:45 -08:00
rpc SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
sys abd_os: move headers from libzpool to libspl 2025-06-17 10:50:26 -07:00
assert.h Cleanup VERIFY() macros (#17163) 2025-05-28 16:00:28 -07:00
atomic.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libgen.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
libshare.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
Makefile.am Linux 6.17 compat: Fix broken projectquota on 6.17 2025-11-12 09:52:16 -08:00
statcommon.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
stdlib.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
string.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
umem.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
unistd.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00
zone.h SPDX: license tags: CDDL-1.0 2025-04-16 09:59:44 -07:00