Description: Fix FTBFS with GCC 15 default C23: K&R strcache() declaration
 The rpcgen input rpcmars.x embeds a K&R style declaration
 "extern char* strcache();" which is copied verbatim into the generated
 marsxdr.c / rpcmars.c. GCC 15 defaults to -std=gnu23, where an empty
 parameter list means (void), so the declaration conflicts with the
 prototype "char* strcache(const char* name);" in hash.h (included just
 above via rpcmars.h) and the subsequent strcache(sp) call fails with
 "too many arguments". Give the declaration the proper prototype so the
 generated code compiles under any C dialect.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-10-24

--- metview-5.25.0.orig/mars-client/src/rpcmars.x
+++ metview-5.25.0/mars-client/src/rpcmars.x
@@ -11,7 +11,7 @@
 #ifdef RPC_XDR
 %bool_t xdr_cache_t(XDR *xdrs,char **name)
 %{
-%   extern char* strcache();
+%   extern char* strcache(const char*);
 %	char *sp = *name;
 %
 %	switch (xdrs->x_op)
