Project

General

Profile

Actions

Bug #1646

closed

fix kernel build in non-INET6 case

Added by Johannes.Hofmann almost 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Probabely due to the recent -Werror introduction kernel no longer
builds if INET6 is not set (static function declared but never
defined), so declare it only if INET6 is set:

diff --git a/sys/net/faith/if_faith.c b/sys/net/faith/if_faith.c
index 1fe2f28..650b844 100644
--- a/sys/net/faith/if_faith.c
++ b/sys/net/faith/if_faith.c
@ -99,7 +99,9 @ static int faithioctl (struct ifnet *, u_long, caddr_t, struct ucred *);
int faithoutput (struct ifnet *, struct mbuf *, struct sockaddr *,
struct rtentry *);
static void faithrtrequest (int, struct rtentry *, struct rt_addrinfo *);
#ifdef INET6
static int faithprefix (struct in6_addr *);
+#endif

static int faithmodevent (module_t, int, void *);

Cheers,
Johannes

Actions #1

Updated by swildner almost 15 years ago

OK, I've committed it (along with some more minor fixes which crept up during
LINT build).

2183cbe4203baa9866bde803a95210404d75b6ac

Actions

Also available in: Atom PDF