aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-05-16 19:56:27 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-05-16 19:56:27 +0000
commit36506f2f55bfe3cb132e9dc96b5b21f66879f621 (patch)
tree0009a35318287936cd26909c96f503ca882c43b7 /dumpcap.c
parent88fe523c48e18d8e4d6b4a172e52eb2afb5ee6ea (diff)
#include <conio.h> when compiling under Windows with DEBUG_DUMPCAP defined.
svn path=/trunk/; revision=37187
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index d7b4c521d4..d86dd1eac5 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -123,6 +123,12 @@
/**#define DEBUG_DUMPCAP**/
/**#define DEBUG_CHILD_DUMPCAP**/
+#ifdef _WIN32
+#ifdef DEBUG_DUMPCAP
+#include <conio.h> /* _getch() */
+#endif
+#endif
+
#ifdef DEBUG_CHILD_DUMPCAP
FILE *debug_log; /* for logging debug messages to */
/* a file if DEBUG_CHILD_DUMPCAP */