diff options
author | bz <bz@FreeBSD.org> | 2008-11-05 11:37:26 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-11-05 11:37:26 +0000 |
commit | f83635a6ee1bfb033527668f641353a193daa86e (patch) | |
tree | d65b473633971bd9f4c04fde6eb078e32fff1fb2 /sys/net/if_gif.c | |
parent | 8dd958ae178f7cde9ca9f289c3a8243a7689837f (diff) | |
download | FreeBSD-src-f83635a6ee1bfb033527668f641353a193daa86e.zip FreeBSD-src-f83635a6ee1bfb033527668f641353a193daa86e.tar.gz |
Do only define the variable if either INET or INET6 is defined.
To prevent it from compiling without INET and INET6 we should put
an explicit #error in there like we have in other files,
but not rely on an unused variable.
MFC after: 2 months
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 8e0363c..db8835e 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -207,7 +207,9 @@ static void gif_clone_destroy(ifp) struct ifnet *ifp; { +#if defined(INET) || defined(INET6) int err; +#endif struct gif_softc *sc = ifp->if_softc; mtx_lock(&gif_mtx); |