From 02d63ee5a44635692fcec620563f7416f21732c8 Mon Sep 17 00:00:00 2001 From: Michel Zou Date: Mon, 11 Nov 2019 22:15:41 +0100 Subject: [PATCH] disk_cache_get_function_timestamp: check for dladdr instead of dlopen Reviewed-by: Eric Engestrom --- 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) { -- 2.30.2