diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-01-21 11:49:35 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2020-01-21 11:52:27 -0500 |
commit | daed7eedba73907730241c5262a5c16c7abedb6f (patch) | |
tree | 6eb1ba37ec011a2e11cb75e337eafdb85a0897b3 /src | |
parent | 342aa6c11d8dd2cb7cf5c2db5c38e8ccabbb1b24 (diff) | |
download | ti-rpc-daed7eedba73907730241c5262a5c16c7abedb6f.tar.gz |
Avoid multiple-definiton with gcc -fno-common
GCC 10 enables -fno-common by default.
Fixes: https://bugs.gentoo.org/705896
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc_com.h | 3 | ||||
-rw-r--r-- | src/svc.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/rpc_com.h b/src/rpc_com.h index 10bec79..76badef 100644 --- a/src/rpc_com.h +++ b/src/rpc_com.h @@ -61,8 +61,7 @@ void __xprt_unregister_unlocked(SVCXPRT *); void __xprt_set_raddr(SVCXPRT *, const struct sockaddr_storage *); -SVCXPRT **__svc_xports; -int __svc_maxrec; +extern int __svc_maxrec; #ifdef __cplusplus } @@ -57,6 +57,9 @@ #define max(a, b) (a > b ? a : b) +static SVCXPRT **__svc_xports; +int __svc_maxrec; + /* * The services list * Each entry represents a set of procedures (an rpc program). |