Add correct library names for macOS

This commit is contained in:
Cacodemon345
2021-08-26 14:27:52 +06:00
parent 766f321d4d
commit 426df48151
5 changed files with 14 additions and 1 deletions

View File

@@ -269,6 +269,8 @@ main(int argc, char **argv)
/* Try loading the DLL. */
#ifdef _WIN32
pcap_handle = dynld_module("wpcap.dll", pcap_imports);
#elif defined __APPLE__
pcap_handle = dynld_module("libpcap.dylib", pcap_imports);
#else
pcap_handle = dynld_module("libpcap.so", pcap_imports);
#endif