Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/protocolInterface/pcapDynamicLinking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@
#else
# include <dlfcn.h>
# include <signal.h>
# ifdef __APPLE__
# define PCAP_LIBRARY "/usr/lib/libpcap.dylib" /* Due to macOS hardened runtime, we have to specify the absolute path for the pcap library */
# else /* !__APPLE__ */
# define PCAP_LIBRARY "libpcap.so"
# endif /* __APPLE__ */
# ifndef PCAP_LIBRARY /* allow library name to be overridden to include soname */
# ifdef __APPLE__
# define PCAP_LIBRARY "/usr/lib/libpcap.dylib" /* Due to macOS hardened runtime, we have to specify the absolute path for the pcap library */
# else /* !__APPLE__ */
# define PCAP_LIBRARY "libpcap.so"
# endif /* __APPLE__ */
# endif /* !PCAP_LIBRARY */
# define DL_HANDLE void*
# define DL_OPEN(x) dlopen((x), RTLD_LAZY)
# define DL_CLOSE(x) dlclose(x)
Expand Down
Loading