aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2007-04-17 17:13:55 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2007-04-17 17:13:55 +0000
commit0ab99b0817d261d20988c2c7965251424b8e3f3a (patch)
treee50b17c3b7c50e7ab770e1c5cce566ec49786e34 /tools
parentbdf4db1c86879680887a896b9dee2c012243e3c7 (diff)
Use the older-style ST_MTIME instead of st_mtime. This should fix backward
compatibility. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21459 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rw-r--r--tools/make-dissector-reg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/make-dissector-reg.py b/tools/make-dissector-reg.py
index bc484f9444..0b9776b42b 100644
--- a/tools/make-dissector-reg.py
+++ b/tools/make-dissector-reg.py
@@ -15,6 +15,7 @@ import os
import sys
import re
import pickle
+from stat import *
#
# The first argument is the directory in which the source files live.
@@ -95,7 +96,7 @@ if cache_filename:
# Grep
for filename in filenames:
file = open(filename)
- cur_mtime = os.fstat(file.fileno()).st_mtime
+ cur_mtime = os.fstat(file.fileno())[ST_MTIME]
if cache and cache.has_key(filename):
cdict = cache[filename]
if cur_mtime == cdict['mtime']: