1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #307, Support disable sendmmsg

This commit is contained in:
winlin 2020-04-05 22:13:49 +08:00
parent 6f7ebbdc5f
commit b8db61bd9c
4 changed files with 14 additions and 5 deletions

View file

@ -409,7 +409,7 @@ int srs_sendmsg(srs_netfd_t stfd, const struct msghdr *msg, int flags, srs_utime
int srs_sendmmsg(srs_netfd_t stfd, struct mmsghdr *msgvec, unsigned int vlen, int flags, srs_utime_t timeout)
{
#if defined(SRS_AUTO_OSX) || !defined(SRS_AUTO_SENDMMSG)
#if !defined(SRS_AUTO_HAS_SENDMMSG) || !defined(SRS_AUTO_SENDMMSG)
// @see http://man7.org/linux/man-pages/man2/sendmmsg.2.html
for (int i = 0; i < (int)vlen; ++i) {
struct mmsghdr* p = msgvec + i;