Skip to content

Commit

Permalink
Fixed compilation without npcap
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Apr 17, 2024
1 parent 4f6cc5c commit 165b220
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions samples/ecaludp_perftool/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,21 @@ int main(int argc, char* argv[])
receiver = std::make_shared<ReceiverAsync>(receiver_parameters);
break;
case Implementation::RECEIVENPCAP:
#if ECALUDP_UDPCAP_ENABLED
receiver = std::make_shared<ReceiverNpcapSync>(receiver_parameters);
break;
#else
std::cerr << "Error: Npcap-based receiver not enabled" << std::endl;
return 1;
#endif // ECALUDP_UDPCAP_ENABLED
case Implementation::RECEIVENPCAPASYNC:
#if ECALUDP_UDPCAP_ENABLED
receiver = std::make_shared<ReceiverNpcapAsync>(receiver_parameters);
break;
#else
std::cerr << "Error: Npcap-based receiver not enabled" << std::endl;
return 1;
#endif // ECALUDP_UDPCAP_ENABLED
default:
break;
}
Expand Down

0 comments on commit 165b220

Please sign in to comment.