diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
| commit | 1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch) | |
| tree | a816cae9543dbb9277a62d68a91416fb2fb33da3 /share/examples/sunrpc/msg/printmsg.c | |
| parent | 2961fc5ac412eec93a03d4badbbf4e01918d864a (diff) | |
Notes
Diffstat (limited to 'share/examples/sunrpc/msg/printmsg.c')
| -rw-r--r-- | share/examples/sunrpc/msg/printmsg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/examples/sunrpc/msg/printmsg.c b/share/examples/sunrpc/msg/printmsg.c index f2d5285af39f..681007c4b1fe 100644 --- a/share/examples/sunrpc/msg/printmsg.c +++ b/share/examples/sunrpc/msg/printmsg.c @@ -1,7 +1,9 @@ /* @(#)printmsg.c 2.1 88/08/11 4.0 RPCSRC */ +/* $FreeBSD$ */ /* * printmsg.c: print a message on the console */ +#include <paths.h> #include <stdio.h> main(argc, argv) @@ -33,7 +35,7 @@ printmessage(msg) { FILE *f; - f = fopen("/dev/console", "w"); + f = fopen(_PATH_CONSOLE, "w"); if (f == NULL) { return (0); } |
