mirror of
https://github.com/mfontanini/libtins
synced 2026-01-29 04:54:28 +01:00
Fixed compilation errors on Windows.
This commit is contained in:
@@ -154,7 +154,11 @@ void BaseSniffer::stop_sniff() {
|
||||
}
|
||||
|
||||
int BaseSniffer::get_fd() {
|
||||
return pcap_get_selectable_fd(handle);
|
||||
#ifndef WIN32
|
||||
return pcap_get_selectable_fd(handle);
|
||||
#else
|
||||
throw std::runtime_error("Method not supported in Windows platform");
|
||||
#endif // WIN32
|
||||
}
|
||||
|
||||
int BaseSniffer::link_type() const {
|
||||
|
||||
Reference in New Issue
Block a user