Don't define "promisc_mode" if we weren't built with libpcap support.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 4 Jan 2001 00:16:43 +0000 (00:16 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 4 Jan 2001 00:16:43 +0000 (00:16 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2821 f5534014-38df-0310-8fa8-9805f1628bb7

tethereal.c

index 1c70815c2258ab865e09c854e02b761899720140..11b1a9d46927f2c619cfc4dda1179c6bf0749e5d 100644 (file)
@@ -1,6 +1,6 @@
 /* tethereal.c
  *
- * $Id: tethereal.c,v 1.60 2000/12/03 22:12:18 guy Exp $
+ * $Id: tethereal.c,v 1.61 2001/01/04 00:16:43 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -127,7 +127,9 @@ capture_file cfile;
 FILE        *data_out_file = NULL;
 guint        main_ctx, file_ctx;
 ts_type timestamp_type = RELATIVE;
+#ifdef HAVE_LIBPCAP
 static int promisc_mode = TRUE;
+#endif
 
 static void 
 print_usage(void)