mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Add musl-libc compatibility.
This commit is contained in:
parent
6573c38fb6
commit
0bad1c1702
10
socket.c
10
socket.c
@ -19,6 +19,14 @@
|
||||
#include "log.h"
|
||||
#include "socket.h"
|
||||
|
||||
#if defined(__GLIBC__)
|
||||
#if defined(__GLIBC_PREREQ)
|
||||
#if !__GLIBC_PREREQ(2,12)
|
||||
#define __SATIP_DISABLE_RECVMMSG__
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
cSatipSocket::cSatipSocket()
|
||||
: socketPortM(0),
|
||||
socketDescM(-1),
|
||||
@ -289,7 +297,7 @@ int cSatipSocket::ReadMulti(unsigned char *bufferAddrP, unsigned int *elementRec
|
||||
error("%s Invalid parameter(s)", __PRETTY_FUNCTION__);
|
||||
return -1;
|
||||
}
|
||||
#if defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2,12)
|
||||
#ifndef __SATIP_DISABLE_RECVMMSG__
|
||||
// Initialize iov and msgh structures
|
||||
struct mmsghdr mmsgh[elementCountP];
|
||||
struct iovec iov[elementCountP];
|
||||
|
Loading…
Reference in New Issue
Block a user