From: Michel Zou Date: Mon, 11 Nov 2019 21:15:41 +0000 (+0100) Subject: disk_cache_get_function_timestamp: check for dladdr X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=02d63ee5a44635692fcec620563f7416f21732c8 disk_cache_get_function_timestamp: check for dladdr instead of dlopen Reviewed-by: Eric Engestrom --- diff --git a/src/util/disk_cache.h b/src/util/disk_cache.h index 2a147cba615..a77bb678b1a 100644 --- a/src/util/disk_cache.h +++ b/src/util/disk_cache.h @@ -91,7 +91,7 @@ disk_cache_format_hex_id(char *buf, const uint8_t *hex_id, unsigned size) return buf; } -#ifdef HAVE_DLFCN_H +#ifdef HAVE_DLADDR static inline bool disk_cache_get_function_timestamp(void *ptr, uint32_t* timestamp) {