From ebc5f42f267560a22319e754cc4d9a9f97e786ab Mon Sep 17 00:00:00 2001 From: Aaro Altonen Date: Wed, 22 May 2019 09:38:10 +0300 Subject: [PATCH] Fix ifdef linux check --- src/send.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/send.cc b/src/send.cc index bd38b19..4b188f3 100644 --- a/src/send.cc +++ b/src/send.cc @@ -23,7 +23,7 @@ static int __internalWrite(RTPConnection *conn, uint8_t *buf, size_t bufLen, int RTPWriter *writer = dynamic_cast(conn); sockaddr_in outAddr = writer->getOutAddress(); -#if __linux +#ifdef __linux__ if (sendto(conn->getSocket(), buf, bufLen, flags, (struct sockaddr *)&outAddr, sizeof(outAddr)) == -1) return RTP_SEND_ERROR; #else