[Patch] allow -M for rpcgen again
Thorsten Kukuk
kukuk@suse.de
Sun Apr 8 05:01:00 GMT 2001
Hi,
If our RPC code is now really threadsafe, we should allow rpcgen
to generate threadsafe stubs, too:
2001-04-08 Thorsten Kukuk <kukuk@suse.de>
* sunrpc/rpc_main.c: If we compile RPC thread safe, allow
rpcgen to generate thread safe code
Index: sunrpc/rpc_main.c
===================================================================
RCS file: /cvs/glibc/libc/sunrpc/rpc_main.c,v
retrieving revision 1.20
diff -u -r1.20 rpc_main.c
--- rpc_main.c 2000/12/31 15:43:51 1.20
+++ rpc_main.c 2001/04/08 11:55:10
@@ -1357,6 +1357,7 @@
cmd->Scflag = flag['C'];
cmd->makefileflag = flag['M'];
+#ifndef _RPC_THREAD_SAFE_
if (mtflag || newstyle)
{
/* glibc doesn't support these flags. */
@@ -1364,6 +1365,7 @@
_("This implementation doesn't support newstyle or MT-safe code!\n"));
return (0);
}
+#endif
if (tirpcflag)
{
pmflag = inetdflag ? 0 : 1; /* pmflag or inetdflag is always TRUE */
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE GmbH Schanzaeckerstr. 10 90443 Nuernberg
Linux is like a Vorlon. It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.
More information about the Libc-hacker
mailing list