]> git.proxmox.com Git - mirror_zfs.git/commit
Fix multiple definitions of struct mount_attr on recent glibc versions
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Thu, 20 Oct 2022 16:12:21 +0000 (12:12 -0400)
committerGitHub <noreply@github.com>
Thu, 20 Oct 2022 16:12:21 +0000 (09:12 -0700)
commit9650b35e95dd99bb3299b850693ea7218fd81d22
tree95ae07a67dbdc93ab05a935f054d51a7cf018e35
parent411d327c676225ca7a208b61899124ad27327657
Fix multiple definitions of struct mount_attr on recent glibc versions

The ifdef used would never work because the CPP is not aware of C
structure definitions. Rather than use an autotools check, we can just
use a nameless structure that we typedef to mount_attr_t. This is a
Linux kernel interface, which means that it is stable and this is fine
to do.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Youzhong Yang <yyang@mathworks.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14057
Closes #14058
tests/zfs-tests/cmd/idmap_util.c