aboutsummaryrefslogtreecommitdiffstats
path: root/pcapio.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2007-02-01 08:38:54 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2007-02-01 08:38:54 +0000
commitaece563ce0eb3f9ab7c051d4bc39d86fb85ff0b0 (patch)
tree8b247d4de216d562d9098f553b2ccbfd382558b1 /pcapio.c
parent1de2ccc7777ca86d09b06e7b3f3f916ff43eadce (diff)
there is no point in pcapio unless we have PCAP available.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20663 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'pcapio.c')
-rw-r--r--pcapio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcapio.c b/pcapio.c
index 5c4b885925..f4e3af9498 100644
--- a/pcapio.c
+++ b/pcapio.c
@@ -1,3 +1,5 @@
+#ifdef HAVE_LIBPCAP
+
/* pcapio.c
* Our own private code for writing libpcap files when capturing.
*
@@ -184,3 +186,5 @@ libpcap_dump_close(FILE *pd, int *err)
}
return TRUE;
}
+
+#endif /* HAVE_LIBPCAP */