diff options
author | ngie <ngie@FreeBSD.org> | 2016-12-03 19:52:33 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-12-03 19:52:33 +0000 |
commit | 775650a0d7873d344033a18597bcf2a9254cc684 (patch) | |
tree | 40858af303092cb4675e7b041f2806aef9d7d05b | |
parent | 83855f875bfc8cf87e6c1e5a25d5e974c7166049 (diff) | |
download | FreeBSD-src-775650a0d7873d344033a18597bcf2a9254cc684.zip FreeBSD-src-775650a0d7873d344033a18597bcf2a9254cc684.tar.gz |
MFC r264196:
r264196 (by theraven):
Move definitions out of rpc_com so that the linker doesn't complain about
multiple definitions.
-rw-r--r-- | lib/libc/rpc/rpc_com.h | 4 | ||||
-rw-r--r-- | lib/libc/rpc/svc.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/rpc/rpc_com.h b/lib/libc/rpc/rpc_com.h index 770faf9..bfa6a0b 100644 --- a/lib/libc/rpc/rpc_com.h +++ b/lib/libc/rpc/rpc_com.h @@ -86,8 +86,8 @@ bool_t __xdrrec_setnonblock(XDR *, int); bool_t __xdrrec_getrec(XDR *, enum xprt_stat *, bool_t); void __xprt_unregister_unlocked(SVCXPRT *); -SVCXPRT **__svc_xports; -int __svc_maxrec; +extern SVCXPRT **__svc_xports; +extern int __svc_maxrec; __END_DECLS diff --git a/lib/libc/rpc/svc.c b/lib/libc/rpc/svc.c index 0bed986..d68fa9f 100644 --- a/lib/libc/rpc/svc.c +++ b/lib/libc/rpc/svc.c @@ -84,6 +84,9 @@ static struct svc_callout { void (*sc_dispatch)(struct svc_req *, SVCXPRT *); } *svc_head; +SVCXPRT **__svc_xports; +int __svc_maxrec; + static struct svc_callout *svc_find(rpcprog_t, rpcvers_t, struct svc_callout **, char *); static void __xprt_do_unregister (SVCXPRT *xprt, bool_t dolock); |