aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rpcgen/rpc_main.c
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-02-10 08:12:38 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-02-10 08:12:38 +0000
commit4f83fd19620008cfa1bcec24b41665a08c014fe7 (patch)
treea82dfabc16026f2e2ffd7be46d1a301c1902de11 /usr.bin/rpcgen/rpc_main.c
parent6e92ff07a3b0b31435f82b0ed0f002179a957455 (diff)
downloadsrc-4f83fd19620008cfa1bcec24b41665a08c014fe7.tar.gz
src-4f83fd19620008cfa1bcec24b41665a08c014fe7.zip
Let the generated code include <string.h> instead of <memory.h>.
Notes
Notes: svn path=/head/; revision=141604
Diffstat (limited to 'usr.bin/rpcgen/rpc_main.c')
-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 022c4f1b7eeb..7871f53833ef 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);