]> git.decadent.org.uk Git - nfs-utils.git/commit - utils/gssd/context_lucid.c
gssd: include gssapi/gssapi.h before write_bytes.h
authorChuck Lever <chuck.lever@oracle.com>
Thu, 5 Mar 2009 11:23:25 +0000 (06:23 -0500)
committerSteve Dickson <steved@redhat.com>
Thu, 5 Mar 2009 11:23:25 +0000 (06:23 -0500)
commitd201426838f6cd02e52e7e841901fa92a20e74f1
tree824e53b32e74a6f43c96465223d1e06de92a410a
parentd78a45a152d2270b6e92b451b6b4585567ec2f8a
gssd: include gssapi/gssapi.h before write_bytes.h

In gssd/context_lucid.c, ensure that gss_buffer_desc and gss_OID_desc
are defined before write_bytes.h, which uses these definitions, is
included.  With TI-RPC, these definitions are not provided by
rpc/rpc.h.

It appears that <gssapi/gssapi_krb5.h> already includes krb5.h and
gssapi.h (on my system, anyway) so let's drop those includes.

Ideally write_bytes.h itself should include the needed headers, but
some source files that use Heimdal include a different, Heimdal-
compatible, header to get these definitions.

Pointed-out-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/context_lucid.c