[LTP] [PATCH] configure.ac: Add _GNU_SOURCE for struct fs_quota_statv check

Petr Vorel pvorel@suse.cz
Wed Jun 19 11:27:04 CEST 2024


Hi Li,

> These changes help ensure that the necessary features and definitions
> are available during the configuration process, preventing potential
> issues related to missing or incompatible definitions. This should
> resolve the compilation error related to struct fs_quota_statv:

>  /usr/include/xfs/xqm.h:167:8: error: redefinition of ‘struct fs_qfilestatv’

I wonder how _GNU_SOURCE influences any XFS header?
I haven't found anything in (<xfs/*.h>) or in <sys/quota.h>
I know that some quotactl0[23].c define _GNU_SOURCE, but it's interesting that
this influence the header. Also, which RHEL (or whatever distro) version has
this problem?

Kind regards,
Petr


More information about the ltp mailing list