diff --git a/satip.c b/satip.c index ec2f8ab..4b6fb4e 100644 --- a/satip.c +++ b/satip.c @@ -5,6 +5,7 @@ * */ +#include #include #include #include "common.h" diff --git a/socket.c b/socket.c index 4cb19f3..bc4ee90 100644 --- a/socket.c +++ b/socket.c @@ -289,6 +289,7 @@ int cSatipSocket::ReadMulti(unsigned char *bufferAddrP, unsigned int *elementRec error("%s Invalid parameter(s)", __PRETTY_FUNCTION__); return -1; } +#if defined(__GLIBC__) #if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2,12) // Initialize iov and msgh structures struct mmsghdr mmsgh[elementCountP]; @@ -307,6 +308,7 @@ int cSatipSocket::ReadMulti(unsigned char *bufferAddrP, unsigned int *elementRec for (int i = 0; i < count; ++i) elementRecvSizeP[i] = mmsgh[i].msg_len; #else +#endif count = 0; while (count < (int)elementCountP) { int len = Read(bufferAddrP + count * elementBufferSizeP, elementBufferSizeP); @@ -316,6 +318,8 @@ int cSatipSocket::ReadMulti(unsigned char *bufferAddrP, unsigned int *elementRec break; elementRecvSizeP[count++] = len; } +#if defined(__GLIBC__) +#endif #endif debug16("%s Received %d packets size[0]=%d", __PRETTY_FUNCTION__, count, elementRecvSizeP[0]);