aboutsummaryrefslogtreecommitdiffstats
path: root/pcapio.c
diff options
context:
space:
mode:
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2007-02-01 12:34:28 +0000
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2007-02-01 12:34:28 +0000
commit0e210d07196d8150829520a63494299cb223ff18 (patch)
tree6a4068240a56477ba3ebded6a7ec9a0360ff3760 /pcapio.c
parente5f0f4a393d40e82b67bb866699518505faae53d (diff)
OK, fix it properly by adding test after config.h has been included...
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20668 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'pcapio.c')
-rw-r--r--pcapio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pcapio.c b/pcapio.c
index c762d4313e..d6df7840ae 100644
--- a/pcapio.c
+++ b/pcapio.c
@@ -1,6 +1,3 @@
-/* TODO: why isn't this defined??? */
-/* #ifdef HAVE_LIBPCAP */
-
/* pcapio.c
* Our own private code for writing libpcap files when capturing.
*
@@ -47,6 +44,8 @@
#include "config.h"
#endif
+#ifdef HAVE_LIBPCAP
+
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
@@ -188,4 +187,4 @@ libpcap_dump_close(FILE *pd, int *err)
return TRUE;
}
-/*#endif */ /* HAVE_LIBPCAP */
+#endif /* HAVE_LIBPCAP */