mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336962
@ -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…
Reference in New Issue
Block a user