diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-02-18 01:15:34 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-02-18 01:15:34 +0000 |
commit | 377c7157a8802c289c5560f1a2ecd1030d571e7d (patch) | |
tree | dbfc05a518799d315e5a9bc070d6a408287a4691 /libc/inet/rpc/svc_raw.c | |
parent | c56735672c2f771e0c9d87480c85b72aa99aceec (diff) |
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.
Diffstat (limited to 'libc/inet/rpc/svc_raw.c')
-rw-r--r-- | libc/inet/rpc/svc_raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/rpc/svc_raw.c b/libc/inet/rpc/svc_raw.c index 059f9c5ec..05bf3109c 100644 --- a/libc/inet/rpc/svc_raw.c +++ b/libc/inet/rpc/svc_raw.c @@ -56,7 +56,7 @@ struct svcraw_private_s char verf_body[MAX_AUTH_BYTES]; }; #ifdef __UCLIBC_HAS_THREADS__ -#define svcraw_private ((struct svcraw_private_s *)RPC_THREAD_VARIABLE(svcraw_private_s)) +#define svcraw_private (*(struct svcraw_private_s **)&RPC_THREAD_VARIABLE(svcraw_private_s)) #else static struct svcraw_private_s *svcraw_private; #endif |