Skip to content

Commit 015fe1c

Browse files
committed
Fix build without bonding
1 parent dbc36a5 commit 015fe1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

srtcore/group.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ void CUDTGroup::setOpt(SRT_SOCKOPT optName, const void* optval, int optlen)
387387
m_iRcvTimeOut = cast_optval<int>(optval, optlen);
388388
break;
389389

390+
// The CUDTGroup is included in the build even when bonding is disabled.
391+
#if ENABLE_EXPERIMENTAL_BONDING
390392
case SRTO_GROUPMINSTABLETIMEO:
391393
{
392394
const int val_ms = cast_optval<int>(optval, optlen);
@@ -417,6 +419,7 @@ void CUDTGroup::setOpt(SRT_SOCKOPT optName, const void* optval, int optlen)
417419
}
418420

419421
break;
422+
#endif
420423

421424
// XXX Currently no socket groups allow any other
422425
// congestion control mode other than live.

0 commit comments

Comments
 (0)