Skip to content

Commit

Permalink
[core] Have SRT_SocketOptionObject even if bonding is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed May 6, 2022
1 parent e208d9f commit 116c554
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions srtcore/socketconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ inline bool cast_optval(const void* optval, int optlen)

} // namespace srt

#if ENABLE_BONDING
struct SRT_SocketOptionObject
{
struct SingleOption
Expand All @@ -358,7 +357,6 @@ struct SRT_SocketOptionObject
unsigned char storage[1]; // NOTE: Variable length object!
};


std::vector<SingleOption*> options;

SRT_SocketOptionObject() {}
Expand All @@ -375,6 +373,5 @@ struct SRT_SocketOptionObject

bool add(SRT_SOCKOPT optname, const void* optval, size_t optlen);
};
#endif

#endif

0 comments on commit 116c554

Please sign in to comment.