summaryrefslogtreecommitdiff
path: root/security/sfs/patches/patch-aq
diff options
context:
space:
mode:
Diffstat (limited to 'security/sfs/patches/patch-aq')
-rw-r--r--security/sfs/patches/patch-aq31
1 files changed, 31 insertions, 0 deletions
diff --git a/security/sfs/patches/patch-aq b/security/sfs/patches/patch-aq
new file mode 100644
index 00000000000..6bce825937b
--- /dev/null
+++ b/security/sfs/patches/patch-aq
@@ -0,0 +1,31 @@
+$NetBSD: patch-aq,v 1.1 2006/10/21 11:53:13 agc Exp $
+
+--- ./sfsmisc/nfsserv.h.orig 2002-09-19 21:04:20.000000000 +0100
++++ ./sfsmisc/nfsserv.h
+@@ -116,9 +116,7 @@ template<int N> class nfscall_cb : publi
+ typedef ref<callback<void, res_type> > cb_t;
+ cb_t cb;
+ public:
+- nfscall_cb (const authunix_parms *au, arg_type a, cb_t c,
+- nfsserv *srv = NULL)
+- : nfscall (au, N, a), cb (c) { if ((stopserv = srv)) srv->mkcb (this); }
++ nfscall_cb (const authunix_parms *au, arg_type a, cb_t c, nfsserv *srv);
+ ~nfscall_cb () {
+ /* Note, if xdr_res is not the default, we could always marshall
+ * and unmarshall the result to get it in the right type. That
+@@ -149,6 +147,15 @@ struct nfsserv : public virtual refcount
+ virtual bool encodefh (nfs_fh3 &fh);
+ };
+
++template<int N> inline
++nfscall_cb<N>::nfscall_cb (const authunix_parms *au, arg_type a, cb_t c,
++ nfsserv *srv = NULL)
++ : nfscall (au, N, a), cb (c)
++{
++ if ((stopserv = srv))
++ srv->mkcb (this);
++}
++
+ class nfsserv_udp : public nfsserv {
+ int fd;
+ ptr<axprt> x;