summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-02-10 08:12:38 +0000
committerstefanf <stefanf@FreeBSD.org>2005-02-10 08:12:38 +0000
commitd65c308b85804832a8227589f5197984e532f183 (patch)
treea82dfabc16026f2e2ffd7be46d1a301c1902de11 /usr.bin/rpcgen
parentf78cbbd5f525ebce5f26adf0fa8cfb30ed1b69a7 (diff)
downloadFreeBSD-src-d65c308b85804832a8227589f5197984e532f183.zip
FreeBSD-src-d65c308b85804832a8227589f5197984e532f183.tar.gz
Let the generated code include <string.h> instead of <memory.h>.
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c
index 022c4f1..7871f53 100644
--- a/usr.bin/rpcgen/rpc_main.c
+++ b/usr.bin/rpcgen/rpc_main.c
@@ -685,7 +685,7 @@ s_output(argc, argv, infile, define, extend, outfile, nomain, netflag)
f_print(fout, "#include <sys/types.h>\n");
}
- f_print(fout, "#include <memory.h>\n");
+ f_print(fout, "#include <string.h>\n");
if (inetdflag || !tirpcflag) {
f_print(fout, "#include <sys/socket.h>\n");
f_print(fout, "#include <netinet/in.h>\n");
@@ -747,7 +747,7 @@ l_output(infile, define, extend, outfile)
open_output(infile, outfilename);
add_warning();
if (Cflag)
- f_print (fout, "#include <memory.h> /* for memset */\n");
+ f_print (fout, "#include <string.h> /* for memset */\n");
if (infile && (include = extendfile(infile, ".h"))) {
f_print(fout, "#include \"%s\"\n", include);
free(include);
OpenPOWER on IntegriCloud