Delete the inclusion of sys/quota.h. This isn't needed on Linux.
You can also delete the inclusiong of xfs_types.h.
At least this compiles file on my 2.3.99-pre2 system.
Can you try it and see if it works on Redhat 5.2?
I'll update our sources.
>> >>>>>>>>>>> Source code for Linux XFS now available! <<<<<<<<<<<<<<
>> A complete linux 2.3.99pre2 tree including the XFS filesystem is available
>> cvs checkout.
>> Please refer to: http://oss.sgi.com/projects/xfs/cvs_download.html
>> for instructions.
>> A snapshot of the CVS tree is also availble:
>> This tar file will not be generated on a reqular basis.
>> A "cvs update -d" should be performed once the tree is download and
>Trying to compile with xfs as a module or in kernel give the following errors :
>In file included from /usr/include/sys/quota.h:3,
> from xfsquotasstubs.c:80:
>/usr/src/linux/include/linux/quota.h:170: field `dq_free' has incomplete type
>/usr/src/linux/include/linux/quota.h:173: parse error before
>/usr/src/linux/include/linux/quota.h:173: warning: no semicolon at end of
>struct or union
>/usr/src/linux/include/linux/quota.h:185: parse error before `}'
>root /usr/src/linux gcc -v
>Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/specs
>gcc version 2.95.1 19990816 (release)
>(BTW, doesn't compile at all with good old 126.96.36.199 gcc)
>I have otherwise a standard RedHat 5.2 distribution.
>Thanks in advance,