Fix INET only builds.
r336940 introduced an "unused variable" warning on platforms which support INET, but not INET6, like MALTA and MALTA64 as reported by Mark Millard. Improve the #ifdefs to address this issue. Sponsored by: Netflix, Inc.
This commit is contained in:
parent
25f15f404d
commit
51e08d53ae
@ -902,7 +902,10 @@ tcp_usr_send(struct socket *so, int flags, struct mbuf *m,
|
||||
struct tcpcb *tp = NULL;
|
||||
struct epoch_tracker net_et;
|
||||
#ifdef INET
|
||||
struct sockaddr_in sin, *sinp;
|
||||
#ifdef INET6
|
||||
struct sockaddr_in sin;
|
||||
#endif
|
||||
struct sockaddr_in *sinp;
|
||||
#endif
|
||||
#ifdef INET6
|
||||
int isipv6;
|
||||
|
Loading…
x
Reference in New Issue
Block a user