This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]