#include <conio.h> when compiling under Windows with DEBUG_DUMPCAP defined.
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 16 May 2011 19:56:27 +0000 (19:56 +0000)
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 16 May 2011 19:56:27 +0000 (19:56 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37187 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c

index d7b4c521d40e7031d95f681390ebdc3bca921d82..d86dd1eac539cc1fa9ccd95c62641173bc4a11cd 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
 /**#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 */