SOLARIS: Avoid areq and auid conflict
authorAndrew Deason <adeason@sinenomine.net>
Fri, 4 Jan 2013 18:47:35 +0000 (13:47 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Sat, 5 Jan 2013 14:28:04 +0000 (06:28 -0800)
commit936c2b02bf6fbeb3844c539665392ae89eb652fe
tree8981d1d5756c53c9d31ce376beaea8958769100b
parent004e9f25634d76be58b5a60dfc3c9a058d8bcd26
SOLARIS: Avoid areq and auid conflict

On new Solaris (11.1), nfs/auth.h #defines areq and auid to access
some elements inside the nfsauth_arg structure more easily. We have a
lot of functions that use those names as parameters, so the compiler
throws an error (since we have a decl like "struct vrequest
*areq_u.areq").

We cannot avoid including that header, since we need some NFS-related
headers for the NFS xlator, and they pull in nfs/auth.h
unconditionally. So, work around this by undefining areq and auid
afterwards.

Change-Id: Ifd139917dfe7a1221941351f7873fe183c617159
Reviewed-on: http://gerrit.openafs.org/8873
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/afs/afs_nfsdisp.c