aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-01 15:31:11 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-06-01 15:31:11 +0200
commit0391b0a9c3d31f5ffdd09d6490b1054b428d8acd (patch)
tree8c6e094c1ecfe9151afe2a0a3d00892ad0c98f2d
parent821f4fad6803525bb5b4973c2e19b94aeb2ae3f5 (diff)
osmo-client-core: Work with older pcap libraries
-rw-r--r--src/osmo_client_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c
index 04d2d25..d651b08 100644
--- a/src/osmo_client_core.c
+++ b/src/osmo_client_core.c
@@ -27,6 +27,10 @@
#include <limits.h>
+#ifndef PCAP_NETMASK_UNKNOWN
+#define PCAP_NETMASK_UNKNOWN 0xffffffff
+#endif
+
static int pcap_read_cb(struct osmo_fd *fd, unsigned int what)
{