Module: Mesa Branch: master Commit: 30a4b25efe005c922f048beaf62852714d2462a1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=30a4b25efe005c922f048beaf62852714d2462a1
Author: Vinson Lee <[email protected]> Date: Thu Feb 23 13:48:34 2017 -0800 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 <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> --- src/util/disk_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/disk_cache.h b/src/util/disk_cache.h index 7f4da80..b7c0df2 100644 --- a/src/util/disk_cache.h +++ b/src/util/disk_cache.h @@ -54,7 +54,7 @@ disk_cache_get_function_timestamp(void *ptr, uint32_t* timestamp) if (stat(info.dli_fname, &st)) { return false; } - *timestamp = st.st_mtim.tv_sec; + *timestamp = st.st_mtime; return true; #else return false; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
