Windows does not support gettimeofday(). Use 0 as a workaround for now.
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 26 Apr 2009 20:01:56 +0000 (20:01 +0000)
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 26 Apr 2009 20:01:56 +0000 (20:01 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28162 f5534014-38df-0310-8fa8-9805f1628bb7

pcapio.c

index a609c2cedd9e5aacb1f6ed8a788b2e9e1d064720..ab4ef66e1962c35c54a9319b00e21690981d7548 100644 (file)
--- 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.");