From: Memphiz Date: Sat, 8 Oct 2011 16:10:06 +0000 (+0200) Subject: [fix] - fix improper definition of struct AUTH from osx (caution - API change - not... X-Git-Tag: upstream/1.9.6^2~290^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fa33813ed484fe8265d7e0cbaf83f71cce60623e;p=deb_libnfs.git [fix] - fix improper definition of struct AUTH from osx (caution - API change - not clear if typedef is there on all plattforms...) --- diff --git a/include/libnfs.h b/include/libnfs.h index d3c7a9a..9758a78 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 2f7ce09..a4b4a62 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); }