summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-09-13 19:04:03 +0000
committerru <ru@FreeBSD.org>2004-09-13 19:04:03 +0000
commite41803bc8097fdfed07a78a78e4efe649c8f5c61 (patch)
treef120ca6f6491653f8b073b24bb23f330de153ce8 /usr.sbin/ppp
parent0caca34c521c0df0ce564d2edbc446fc14c5c225 (diff)
downloadFreeBSD-src-e41803bc8097fdfed07a78a78e4efe649c8f5c61.zip
FreeBSD-src-e41803bc8097fdfed07a78a78e4efe649c8f5c61.tar.gz
Fixed the NONETGRAPH build.
Reported by: wsk@gddsn.org.cn
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/tty.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c
index 916c20b..8d5d58b 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;
OpenPOWER on IntegriCloud