aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pcapio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcapio.c b/pcapio.c
index a609c2cedd..ab4ef66e19 100644
--- a/pcapio.c
+++ b/pcapio.c
@@ -418,9 +418,13 @@ libpcap_write_interface_statistics_block(FILE *fp,
guint64 counter;
gboolean stats_retrieved;
+#ifdef _WIN32
+ timestamp = 0; /* FIXME */
+#else
gettimeofday(&now, NULL);
timestamp = (guint64)(now.tv_sec) * 1000000 +
(guint64)(now.tv_usec);
+#endif
if (pcap_stats(pd, &stats) < 0) {
stats_retrieved = FALSE;
g_warning("pcap_stats() failed.");