diff options
author | ume <ume@FreeBSD.org> | 2001-07-05 14:42:54 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-07-05 14:42:54 +0000 |
commit | 8d650ec72dc37d341306e3fa9dd151db0ba9a46e (patch) | |
tree | 57b0f40df2718ebafc2e8a4dec0091171da3290e | |
parent | 9fe5b34c60e9d1cd8719ea07ca7fd53831545d47 (diff) | |
download | FreeBSD-src-8d650ec72dc37d341306e3fa9dd151db0ba9a46e.zip FreeBSD-src-8d650ec72dc37d341306e3fa9dd151db0ba9a46e.tar.gz |
unbreak building kernel without option INET6
Reported by: markp
-rw-r--r-- | sys/net/if_faith.c | 2 | ||||
-rw-r--r-- | sys/net/if_faith.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c index 840b77b..631049f 100644 --- a/sys/net/if_faith.c +++ b/sys/net/if_faith.c @@ -292,6 +292,7 @@ faithioctl(ifp, cmd, data) return (error); } +#ifdef INET6 /* * XXX could be slow * XXX could be layer violation to call sys/net from sys/netinet6 @@ -321,4 +322,5 @@ faithprefix(in6) RTFREE(rt); return ret; } +#endif #endif /* NFAITH > 0 */ diff --git a/sys/net/if_faith.h b/sys/net/if_faith.h index 1e30bfb..7fa9b5a 100644 --- a/sys/net/if_faith.h +++ b/sys/net/if_faith.h @@ -34,8 +34,10 @@ #define _NET_IF_FAITH_H_ #ifdef _KERNEL +#ifdef INET6 struct in6_addr; int faithprefix __P((struct in6_addr *)); #endif +#endif #endif /* _NET_IF_FAITH_H_ */ |