Fix ifdef linux check

This commit is contained in:
Aaro Altonen 2019-05-22 09:38:10 +03:00
parent bd8b9119db
commit ebc5f42f26
1 changed files with 1 additions and 1 deletions

View File

@ -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