diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-02 04:26:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-04-02 04:26:54 +0000 |
commit | 5a360f4a40920b16ce5d68c8e95736dd57f2ce7d (patch) | |
tree | 2428670ae4a1485b27b08ae53167208add736249 /sys/net | |
parent | af0888260112504efbd0d1b0ff27658343750d91 (diff) |
allow this to compile in the never-gonna-happen world without INET
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_vether.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_vether.c b/sys/net/if_vether.c index 0375a928ea3..ec34c9b8b57 100644 --- a/sys/net/if_vether.c +++ b/sys/net/if_vether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vether.c,v 1.12 2010/03/23 00:35:21 dlg Exp $ */ +/* $OpenBSD: if_vether.c,v 1.13 2010/04/02 04:26:53 deraadt Exp $ */ /* * Copyright (c) 2009 Theo de Raadt @@ -140,7 +140,9 @@ int vetherioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct vether_softc *sc = (struct vether_softc *)ifp->if_softc; +#ifdef INET struct ifaddr *ifa = (struct ifaddr *)data; +#endif struct ifreq *ifr = (struct ifreq *)data; int error = 0, link_state; |