Fix compilation (hopefully).
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 21 Feb 2012 12:56:52 +0000 (12:56 +0000)
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 21 Feb 2012 12:56:52 +0000 (12:56 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41107 f5534014-38df-0310-8fa8-9805f1628bb7

ui/gtk/capture_dlg.c

index f218c642b1bada93814fedfdb03dcef44771f5f8..767cc7daa7b0bf6af08f9f2e05dfec44b2415b4c 100644 (file)
@@ -2626,7 +2626,9 @@ add_pipe_cb(gpointer w _U_)
     device.no_addresses = 0;
     device.last_packets = 0;
     device.links        = NULL;
+#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
     device.buffer       = 1;
+#endif
     device.active_dlt   = -1;
     device.if_info.name = NULL;
     device.if_info.description = NULL;