$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 class nfscall_cb : publi typedef ref > 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 inline +nfscall_cb::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 x;