From fa33813ed484fe8265d7e0cbaf83f71cce60623e Mon Sep 17 00:00:00 2001 From: Memphiz Date: Sat, 8 Oct 2011 18:10:06 +0200 Subject: [PATCH] [fix] - fix improper definition of struct AUTH from osx (caution - API change - not clear if typedef is there on all plattforms...) --- include/libnfs.h | 3 ++- lib/libnfs.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.34.1