diff options
author | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-04-26 20:01:56 +0000 |
---|---|---|
committer | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-04-26 20:01:56 +0000 |
commit | 852ba59bc89984ffdc8c246df14e5b6082747098 (patch) | |
tree | 6eacecf4d4139a6710410352a8c979f5a81b6259 /pcapio.c | |
parent | 452569ecae790e38f9a246df7ca34de5e0420b77 (diff) |
Windows does not support gettimeofday(). Use 0 as a workaround for now.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28162 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'pcapio.c')
-rw-r--r-- | pcapio.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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."); |