Permalink
Browse files

make compilable without -DINET6. from ume.

  • Loading branch information...
1 parent 7c15385 commit 1e10e3a9376e72023243fe8896b81d686d57a134 sumikawa committed Jul 7, 2001
Showing with 6 additions and 2 deletions.
  1. +3 −1 kame/sys/net/if_faith.c
  2. +3 −1 kame/sys/net/if_faith.h
View
4 kame/sys/net/if_faith.c
@@ -1,4 +1,4 @@
-/* $KAME: if_faith.c,v 1.21 2001/02/20 07:59:26 itojun Exp $ */
+/* $KAME: if_faith.c,v 1.22 2001/07/07 06:07:30 sumikawa Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -344,6 +344,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
@@ -377,4 +378,5 @@ faithprefix(in6)
RTFREE(rt);
return ret;
}
+#endif
#endif /* NFAITH > 0 */
View
4 kame/sys/net/if_faith.h
@@ -1,4 +1,4 @@
-/* $KAME: if_faith.h,v 1.1 2000/07/26 05:49:21 itojun Exp $ */
+/* $KAME: if_faith.h,v 1.2 2001/07/07 06:07:30 sumikawa Exp $ */
/*
* Copyright (C) 2000 WIDE Project.
@@ -33,8 +33,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_ */

0 comments on commit 1e10e3a

Please sign in to comment.