summaryrefslogtreecommitdiffstats
path: root/libexec/talkd
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-09-09 14:30:11 +0000
committerdd <dd@FreeBSD.org>2001-09-09 14:30:11 +0000
commit95cc67242483c73438dc02b8eeef1730ff34ed4d (patch)
tree1921a7e180c57f58419d81092c22b98c3a816b43 /libexec/talkd
parent3c17c0ac6ec2abd033309e345074abeda81b6e63 (diff)
downloadFreeBSD-src-95cc67242483c73438dc02b8eeef1730ff34ed4d.zip
FreeBSD-src-95cc67242483c73438dc02b8eeef1730ff34ed4d.tar.gz
Include ttymsg.h from ../../usr.bin/wall instead of rolling our own
prototype.
Diffstat (limited to 'libexec/talkd')
-rw-r--r--libexec/talkd/Makefile1
-rw-r--r--libexec/talkd/announce.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/libexec/talkd/Makefile b/libexec/talkd/Makefile
index e0e946d..9116636 100644
--- a/libexec/talkd/Makefile
+++ b/libexec/talkd/Makefile
@@ -2,6 +2,7 @@
# $FreeBSD$
PROG= ntalkd
+CFLAGS+=-I${.CURDIR}/../../usr.bin/wall
SRCS= talkd.c announce.c process.c table.c print.c ttymsg.c
.PATH: ${.CURDIR}/../../usr.bin/wall
MAN= talkd.8
diff --git a/libexec/talkd/announce.c b/libexec/talkd/announce.c
index eb88a44..2761c41 100644
--- a/libexec/talkd/announce.c
+++ b/libexec/talkd/announce.c
@@ -57,10 +57,11 @@ static const char rcsid[] =
#include <unistd.h>
#include <vis.h>
+#include "ttymsg.h"
+
extern char hostname[];
int print_mesg __P((char *, FILE *, CTL_MSG *, char *));
-char *ttymsg __P((struct iovec *, int, char *, int));
/*
* Announce an invitation to talk.
OpenPOWER on IntegriCloud