From 1ffcdfc986d78ba60395f6d06ab20cfa132dcf3c Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 13 Sep 2004 19:04:03 +0000 Subject: [PATCH] Fixed the NONETGRAPH build. Reported by: wsk@gddsn.org.cn --- usr.sbin/ppp/tty.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c index 916c20b7a0a..8d5d58bac28 100644 --- a/usr.sbin/ppp/tty.c +++ b/usr.sbin/ppp/tty.c @@ -574,7 +574,13 @@ tty_Slot(struct physical *p) static void tty_device2iov(struct device *d, struct iovec *iov, int *niov, - int maxiov __unused, int *auxfd, int *nauxfd) + int maxiov __unused, +#ifndef NONETGRAPH + int *auxfd, int *nauxfd +#else + int *auxfd __unused, int *nauxfd __unused +#endif + ) { struct ttydevice *dev = device2tty(d); int sz = physical_MaxDeviceSize(); @@ -623,7 +629,13 @@ static struct device basettydevice = { struct device * tty_iov2device(int type, struct physical *p, struct iovec *iov, int *niov, - int maxiov __unused, int *auxfd, int *nauxfd) + int maxiov __unused, +#ifndef NONETGRAPH + int *auxfd, int *nauxfd +#else + int *auxfd __unused, int *nauxfd __unused +#endif + ) { if (type == TTY_DEVICE) { struct ttydevice *dev = (struct ttydevice *)iov[(*niov)++].iov_base;