Skip to content

Commit

Permalink
Fix OSX Builds SDK pre 10.8. (#607)
Browse files Browse the repository at this point in the history
* Fix OSX Builds SDK pre 10.8.
  • Loading branch information
jlsantiago0 authored and rndi committed Mar 14, 2019
1 parent 6e84a19 commit faf9a10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions srtcore/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ void CChannel::setUDPSockOpt()
}
else //Assuming AF_INET6
{
#ifdef IPV6_TCLASS
if(0 != ::setsockopt(m_iSocket, IPPROTO_IPV6, IPV6_TCLASS, (const char*)&m_iIpToS, sizeof(m_iIpToS)))
#endif
throw CUDTException(MJ_SETUP, MN_NORES, NET_ERROR);
}
}
Expand Down Expand Up @@ -309,7 +311,9 @@ int CChannel::getIpToS() const
}
else
{
#ifdef IPV6_TCLASS
::getsockopt(m_iSocket, IPPROTO_IPV6, IPV6_TCLASS, (char *)&m_iIpToS, &size);
#endif
}
return m_iIpToS;
}
Expand Down
4 changes: 3 additions & 1 deletion srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7855,7 +7855,9 @@ int CUDT::processData(CUnit* unit)

}
if ( !lossdata.empty() )
sendCtrl(UMSG_LOSSREPORT, NULL, lossdata.data(), lossdata.size());
{
sendCtrl(UMSG_LOSSREPORT, NULL, &lossdata[0], lossdata.size());
}

// This is not a regular fixed size packet...
// an irregular sized packet usually indicates the end of a message, so send an ACK immediately
Expand Down

0 comments on commit faf9a10

Please sign in to comment.