Mesa (master): disk_cache_get_function_timestamp: check for dladdr

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Nov 23 15:38:38 UTC 2019


Module: Mesa
Branch: master
Commit: 02d63ee5a44635692fcec620563f7416f21732c8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=02d63ee5a44635692fcec620563f7416f21732c8

Author: Michel Zou <xantares09 at hotmail.com>
Date:   Mon Nov 11 22:15:41 2019 +0100

disk_cache_get_function_timestamp: check for dladdr

instead of dlopen

Reviewed-by: Eric Engestrom <eric at engestrom.ch>

---

 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 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)
 {




More information about the mesa-commit mailing list