diff options
author | phk <phk@FreeBSD.org> | 1994-09-16 05:47:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-09-16 05:47:06 +0000 |
commit | b9bdf5a8d6d7e6ae615d97942a7480c02a5e6d30 (patch) | |
tree | b92a7f95b81824000a4873c75940affa1d511728 /sys/net | |
parent | ae5f9a40b7e38e45dd0788a9ec66d80d71e83989 (diff) | |
download | FreeBSD-src-b9bdf5a8d6d7e6ae615d97942a7480c02a5e6d30.zip FreeBSD-src-b9bdf5a8d6d7e6ae615d97942a7480c02a5e6d30.tar.gz |
Made the kernel compile even without "ether".
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 02741d0..6507bf5 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if.c 8.3 (Berkeley) 1/4/94 - * $Id: if.c,v 1.5 1994/08/08 11:43:44 davidg Exp $ + * $Id: if.c,v 1.6 1994/08/18 22:35:19 wollman Exp $ */ #include <sys/param.h> @@ -47,6 +47,7 @@ #include <net/if.h> #include <net/if_dl.h> #include <net/if_types.h> +#include <ether.h> int ifqmaxlen = IFQ_MAXLEN; @@ -156,8 +157,10 @@ if_attach(ifp) sdl->sdl_data[--namelen] = 0xff; } /* XXX -- Temporary fix before changing 10 ethernet drivers */ +#if NETHER > 0 if (ifp->if_output == ether_output) ether_ifattach(ifp); +#endif } /* * Locate an interface based on a complete address. |