summaryrefslogtreecommitdiffstats
path: root/usr.bin/rpcgen
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-09-25 11:43:48 +0000
committerobrien <obrien@FreeBSD.org>1998-09-25 11:43:48 +0000
commitf6f60ebfb1732a78f078c5f34af318639d6cddc1 (patch)
treef3f389c1210082fff6975ff29167edca977610e0 /usr.bin/rpcgen
parent8a242d4136f4b79849090a5ea9b77f07620575d5 (diff)
downloadFreeBSD-src-f6f60ebfb1732a78f078c5f34af318639d6cddc1.zip
FreeBSD-src-f6f60ebfb1732a78f078c5f34af318639d6cddc1.tar.gz
include <pthread.h>
Submitted by: Alexander Leidinger <netchild@wurzelausix.CS.Uni-SB.DE>
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r--usr.bin/rpcgen/rpc_clntout.c2
-rw-r--r--usr.bin/rpcgen/rpc_main.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/rpcgen/rpc_clntout.c b/usr.bin/rpcgen/rpc_clntout.c
index e4a9db7..48869dd 100644
--- a/usr.bin/rpcgen/rpc_clntout.c
+++ b/usr.bin/rpcgen/rpc_clntout.c
@@ -266,7 +266,7 @@ printbody(proc)
RESULT);
if (mtflag)
- f_print(fout, "\n\t\tTIMEOUT));\n}\n");
+ f_print(fout, "\n\t\tTIMEOUT));\n");
else
f_print(fout, "\n\t\tTIMEOUT) != RPC_SUCCESS) {\n");
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c
index c63cb42..b6d7b2c 100644
--- a/usr.bin/rpcgen/rpc_main.c
+++ b/usr.bin/rpcgen/rpc_main.c
@@ -35,7 +35,7 @@
static char sccsid[] = "@(#)rpc_main.c 1.30 89/03/30 (C) 1987 SMI";
#endif
static const char rcsid[] =
- "$Id: rpc_main.c,v 1.8 1998/01/15 08:46:58 jb Exp $";
+ "$Id: rpc_main.c,v 1.9 1998/03/07 05:43:59 jb Exp $";
#endif
/*
@@ -548,8 +548,12 @@ h_output(infile, define, extend, outfile)
f_print(fout, "#include <rpc/rpc.h>\n");
if (mtflag) {
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
f_print(fout, "#include <synch.h>\n");
f_print(fout, "#include <thread.h>\n");
+#else
+ f_print(fout, "#include <pthread.h>\n");
+#endif
};
/* put the C++ support */
OpenPOWER on IntegriCloud