From 3e32e050072dcda6790295188d3bf7ba11e477f6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 15 Nov 2014 13:52:39 -0600 Subject: Network: Various fixes for clean compile with both Ethernet and SLIP --- nuttx/net/socket/connect.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nuttx/net') diff --git a/nuttx/net/socket/connect.c b/nuttx/net/socket/connect.c index 291a16008..51e4b8426 100644 --- a/nuttx/net/socket/connect.c +++ b/nuttx/net/socket/connect.c @@ -51,6 +51,7 @@ #include #include #include +#include #include "devif/devif.h" #include "tcp/tcp.h" @@ -257,8 +258,8 @@ static uint16_t psock_connect_interrupt(FAR struct net_driver_s *dev, * determine the correct initial MSS. */ - DEBUGASSERT(psock->s_conn); - psock->s_conn->mss = TCP_INITIAL_MSS(dev); + DEBUGASSERT(pstate->tc_conn); + pstate->tc_conn->mss = TCP_INITIAL_MSS(dev); #endif /* Wake up the waiting thread */ -- cgit v1.2.3