This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] Fix the generated _svc.c by rpcgen -k warns unknown pmap_unset
- From: GOTO Masanori <gotom at debian dot or dot jp>
- To: libc-alpha at sources dot redhat dot com
- Cc: gotom at debian dot or dot jp
- Date: Fri, 14 Jan 2005 12:11:34 +0900
- Subject: [PATCH] Fix the generated _svc.c by rpcgen -k warns unknown pmap_unset
The following patch adds output of rpc/pmap_clnt.h even if "rpcgen -k"
is used because pmap_unset defined in pmap_clnt.h is always outputed
to the generated _svc.c file.
Regards,
-- gotom
2005-01-14 GOTO Masanori <gotom@debian.or.jp>
* sunrpc/rpc_main.c (s_output): Generate rpc/pmap_clnt.h
irrespective of Cflag.
Index: sunrpc/rpc_main.c
===================================================================
RCS file: /cvs/glibc/libc/sunrpc/rpc_main.c,v
retrieving revision 1.24
diff -u -r1.24 rpc_main.c
--- sunrpc/rpc_main.c 17 Oct 2004 14:59:39 -0000 1.24
+++ sunrpc/rpc_main.c 14 Jan 2005 02:25:21 -0000
@@ -695,11 +695,9 @@
fprintf (fout, "#include <stdio.h>\n");
fprintf (fout, "#include <stdlib.h>\n");
+ fprintf (fout, "#include <rpc/pmap_clnt.h>\n");
if (Cflag)
- {
- fprintf (fout, "#include <rpc/pmap_clnt.h>\n");
- fprintf (fout, "#include <string.h>\n");
- }
+ fprintf (fout, "#include <string.h>\n");
if (strcmp (svcclosetime, "-1") == 0)
indefinitewait = 1;
else if (strcmp (svcclosetime, "0") == 0)