From: Victor Julien Date: Mon, 27 Aug 2012 14:49:58 +0000 (+0200) Subject: pcap: fix compilation on old libpcap X-Git-Tag: suricata-1.4beta1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbeb8a86b76236a8645d6f1421312b234d13c0f9;p=thirdparty%2Fsuricata.git pcap: fix compilation on old libpcap --- diff --git a/src/source-pcap.c b/src/source-pcap.c index 0843322ef8..75b7617e48 100644 --- a/src/source-pcap.c +++ b/src/source-pcap.c @@ -287,9 +287,11 @@ TmEcode ReceivePcapLoop(ThreadVars *tv, void *data, void *slot) int dbreak = 0; SCLogError(SC_ERR_PCAP_DISPATCH, "error code %" PRId32 " %s", r, pcap_geterr(ptv->pcap_handle)); +#ifdef PCAP_ERROR_BREAK if (r == PCAP_ERROR_BREAK) { SCReturnInt(ptv->cb_result); } +#endif do { usleep(PCAP_RECONNECT_TIMEOUT); if (suricata_ctl_flags != 0) {