diff --git a/include/libnfs.h b/include/libnfs.h index d3c7a9ad..9758a781 100644 --- a/include/libnfs.h +++ b/include/libnfs.h @@ -18,6 +18,7 @@ * This is the highlevel interface to access NFS resources using a posix-like interface */ #include +#include #include struct nfs_context; @@ -63,7 +64,7 @@ EXTERN int nfs_queue_length(struct nfs_context *nfs); /* * Used if you need different credentials than the default for the current user. */ -EXTERN void nfs_set_auth(struct nfs_context *nfs, struct AUTH *auth); +EXTERN void nfs_set_auth(struct nfs_context *nfs, AUTH *auth); /* diff --git a/lib/libnfs.c b/lib/libnfs.c index 2f7ce090..a4b4a62d 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -111,7 +111,7 @@ struct nfs_mcb_data { static int nfs_lookup_path_async_internal(struct nfs_context *nfs, struct nfs_cb_data *data, struct nfs_fh3 *fh); -void nfs_set_auth(struct nfs_context *nfs, struct AUTH *auth) +void nfs_set_auth(struct nfs_context *nfs, AUTH *auth) { rpc_set_auth(nfs->rpc, auth); }