Fix ifdef linux check
This commit is contained in:
parent
bd8b9119db
commit
ebc5f42f26
|
|
@ -23,7 +23,7 @@ static int __internalWrite(RTPConnection *conn, uint8_t *buf, size_t bufLen, int
|
||||||
RTPWriter *writer = dynamic_cast<RTPWriter *>(conn);
|
RTPWriter *writer = dynamic_cast<RTPWriter *>(conn);
|
||||||
sockaddr_in outAddr = writer->getOutAddress();
|
sockaddr_in outAddr = writer->getOutAddress();
|
||||||
|
|
||||||
#if __linux
|
#ifdef __linux__
|
||||||
if (sendto(conn->getSocket(), buf, bufLen, flags, (struct sockaddr *)&outAddr, sizeof(outAddr)) == -1)
|
if (sendto(conn->getSocket(), buf, bufLen, flags, (struct sockaddr *)&outAddr, sizeof(outAddr)) == -1)
|
||||||
return RTP_SEND_ERROR;
|
return RTP_SEND_ERROR;
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue