diff options
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r-- | usr.bin/rpcgen/rpc_clntout.c | 2 | ||||
-rw-r--r-- | usr.bin/rpcgen/rpc_main.c | 6 |
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 */ |