diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-27 10:33:18 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-06-27 10:33:18 +0200 |
commit | b38c81ca8279b8f3bfd9af57d200c147349ffa8d (patch) | |
tree | 4a7469e652aace631c7ca98ddf0b42e76efe775d /package/libtirpc/patches/patch-src_svc_c | |
parent | 5cdeab06fe5b553185040d125da74b12f5ac6442 (diff) |
fix nfs-utils compile, if kerberos is disabled
Diffstat (limited to 'package/libtirpc/patches/patch-src_svc_c')
-rw-r--r-- | package/libtirpc/patches/patch-src_svc_c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/libtirpc/patches/patch-src_svc_c b/package/libtirpc/patches/patch-src_svc_c new file mode 100644 index 000000000..48f84da1c --- /dev/null +++ b/package/libtirpc/patches/patch-src_svc_c @@ -0,0 +1,26 @@ +--- libtirpc-0.2.0.orig/src/svc.c 2009-05-28 21:25:26.000000000 +0200 ++++ libtirpc-0.2.0/src/svc.c 2009-06-27 10:18:05.491935140 +0200 +@@ -77,7 +77,9 @@ static struct svc_callout + + extern rwlock_t svc_lock; + extern rwlock_t svc_fd_lock; ++#ifdef HAVE_RPCSEC_GSS + extern struct svc_auth_ops svc_auth_gss_ops; ++#endif + + static struct svc_callout *svc_find (rpcprog_t, rpcvers_t, + struct svc_callout **, char *); +@@ -715,11 +717,13 @@ svc_getreq_common (fd) + SVC_DESTROY (xprt); + break; + } ++#ifdef HAVE_RPCSEC_GSS + else if ((xprt->xp_auth != NULL) && + (xprt->xp_auth->svc_ah_ops != &svc_auth_gss_ops)) + { + xprt->xp_auth = NULL; + } ++#endif + } + while (stat == XPRT_MOREREQS); + } |