aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet6/sctp6_usrreq.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2013-11-02 20:12:19 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2013-11-02 20:12:19 +0000
commitb54ddf225f052d180ce249a012a1cb4498b3f6a5 (patch)
tree5403d47ddf863beac680148649697eef50b026fc /sys/netinet6/sctp6_usrreq.c
parent3d819cb6102851e77537280d38b51a576b397cb3 (diff)
downloadsrc-b54ddf225f052d180ce249a012a1cb4498b3f6a5.tar.gz
src-b54ddf225f052d180ce249a012a1cb4498b3f6a5.zip
Changes from upstream to improve compilation when INET or INET6
or none of them is defined. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=257555
Diffstat (limited to 'sys/netinet6/sctp6_usrreq.c')
-rw-r--r--sys/netinet6/sctp6_usrreq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c
index 511b0e831730..6c9f9ee1fc3e 100644
--- a/sys/netinet6/sctp6_usrreq.c
+++ b/sys/netinet6/sctp6_usrreq.c
@@ -839,16 +839,18 @@ sctp6_connect(struct socket *so, struct sockaddr *addr, struct thread *p)
uint32_t vrf_id;
int error = 0;
struct sctp_inpcb *inp;
- struct in6pcb *inp6;
struct sctp_tcb *stcb;
#ifdef INET
+ struct in6pcb *inp6;
struct sockaddr_in6 *sin6;
struct sockaddr_storage ss;
#endif
+#ifdef INET
inp6 = (struct in6pcb *)so->so_pcb;
+#endif
inp = (struct sctp_inpcb *)so->so_pcb;
if (inp == NULL) {
SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP6_USRREQ, ECONNRESET);