https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5632aa5d82e244f16edec…
commit 5632aa5d82e244f16edec2b5991f2ea952bd2094
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Thu Mar 24 02:46:53 2022 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Tue Apr 26 03:38:36 2022 +0300
[LIBTIRPC] Do not declare global variables in a header
---
dll/3rdparty/libtirpc/src/rpc_com.h | 5 ++---
dll/3rdparty/libtirpc/src/rpc_commondata.c | 3 +++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dll/3rdparty/libtirpc/src/rpc_com.h b/dll/3rdparty/libtirpc/src/rpc_com.h
index 0658438379a..a69d7f0c3d3 100644
--- a/dll/3rdparty/libtirpc/src/rpc_com.h
+++ b/dll/3rdparty/libtirpc/src/rpc_com.h
@@ -92,9 +92,8 @@ bool_t __xdrrec_getrec(XDR *, enum xprt_stat *, bool_t);
void __xprt_unregister_unlocked(SVCXPRT *);
void __xprt_set_raddr(SVCXPRT *, const struct sockaddr_storage *);
-
-SVCXPRT **__svc_xports;
-int __svc_maxrec;
+extern SVCXPRT **__svc_xports;
+extern int __svc_maxrec;
__END_DECLS
diff --git a/dll/3rdparty/libtirpc/src/rpc_commondata.c
b/dll/3rdparty/libtirpc/src/rpc_commondata.c
index ec8d3fb0a48..3b2a9e51631 100644
--- a/dll/3rdparty/libtirpc/src/rpc_commondata.c
+++ b/dll/3rdparty/libtirpc/src/rpc_commondata.c
@@ -37,3 +37,6 @@
struct opaque_auth _null_auth;
fd_set svc_fdset;
int svc_maxfd = -1;
+
+SVCXPRT **__svc_xports;
+int __svc_maxrec;