94df3e688c
+ add support for gcc4
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
$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;
|