util/disk_cache: Use backward compatible st_mtime.
authorVinson Lee <vlee@freedesktop.org>
Thu, 23 Feb 2017 21:48:34 +0000 (13:48 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 25 Feb 2017 00:06:40 +0000 (16:06 -0800)
commit30a4b25efe005c922f048beaf62852714d2462a1
tree31875fad16bcf94d430f66c7707b618dbdaaf1b9
parentc3f9540a0cee99b0fcaf1f17d485e669c1e293e0
util/disk_cache: Use backward compatible st_mtime.

Fix Mac OS X build error.

  CC       libmesautil_la-disk_cache.lo
In file included from disk_cache.c:46:
./disk_cache.h:57:20: error: no member named 'st_mtim' in 'struct stat'
   *timestamp = st.st_mtim.tv_sec;
                ~~ ^

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99918
Fixes: 207e3a6e4b ("util/radv: move *_get_function_timestamp() to utils")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/util/disk_cache.h