From 377c7157a8802c289c5560f1a2ecd1030d571e7d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 18 Feb 2004 01:15:34 +0000 Subject: Alexandre Oliva writes: While testing the FR-V code with GCC mainline, I ran into some problems in the RPC code. It relies on a GCC extension that is no longer available, namely, the result of a cast is no longer considered an lvalue. This patch enables the code to compile. I haven't been able to test RPC though, especially in a multi-threaded environment. --- libc/inet/rpc/clnt_perror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/inet/rpc/clnt_perror.c') diff --git a/libc/inet/rpc/clnt_perror.c b/libc/inet/rpc/clnt_perror.c index 975075c42..c4b8ee5f6 100644 --- a/libc/inet/rpc/clnt_perror.c +++ b/libc/inet/rpc/clnt_perror.c @@ -58,7 +58,7 @@ static char *auth_errmsg (enum auth_stat stat) internal_function; * buf variable in a few functions. Overriding a global variable * with a local variable of the same name is a bad idea, anyway. */ -#define buf ((char *)RPC_THREAD_VARIABLE(clnt_perr_buf_s)) +#define buf (*(char **)&RPC_THREAD_VARIABLE(clnt_perr_buf_s)) #else static char *buf; #endif -- cgit v1.2.3