From f218b7fcbbc8bbf6a2b09f04cfe1eeb52eedf481 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Sun, 9 Sep 2001 14:30:11 +0000
Subject: [PATCH] Include ttymsg.h from ../../usr.bin/wall instead of rolling
our own prototype.
---
libexec/talkd/Makefile | 1 +
libexec/talkd/announce.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/libexec/talkd/Makefile b/libexec/talkd/Makefile
index e0e946d6aed0..9116636b51af 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 eb88a446c273..2761c413b45f 100644
--- a/libexec/talkd/announce.c
+++ b/libexec/talkd/announce.c
@@ -57,10 +57,11 @@ static const char rcsid[] =
#include
#include
+#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.