Skip to content

Commit

Permalink
Fix compilation issue due to PORT_STATE_CHANGE_QUEUE_SIZE undefined
Browse files Browse the repository at this point in the history
reference.

- In PR sonic-net#1310, a
  constexpt static data member was added. Since sairedis repo uses
  c++14, definition of this data member needs to be provided in .cpp
  file too.
  • Loading branch information
Ashish Singh committed Nov 20, 2023
1 parent 45cbf14 commit 2186ac1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syncd/PortStateChangeHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

using namespace syncd;

constexpr size_t PortStateChangeHandler::PORT_STATE_CHANGE_QUEUE_SIZE;

PortStateChangeHandler::PortStateChangeHandler(
_In_ std::shared_ptr<swss::SelectableEvent> portStateChangeEvent)
{
Expand Down

0 comments on commit 2186ac1

Please sign in to comment.