1
0
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:
Matias Fontanini
2014-05-06 00:13:05 -03:00
parent 4bf5876adf
commit 559c963d63
15 changed files with 674 additions and 542 deletions

View File

@@ -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 {