disk_cache_get_function_timestamp: check for dladdr
authorMichel Zou <xantares09@hotmail.com>
Mon, 11 Nov 2019 21:15:41 +0000 (22:15 +0100)
committerMichel Zou <xantares09@hotmail.com>
Sat, 23 Nov 2019 11:01:11 +0000 (12:01 +0100)
instead of dlopen

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
src/util/disk_cache.h

index 2a147cba615b986eb05c7b13df2d06d820e66489..a77bb678b1adde305d4a549c641e335ff84d47af 100644 (file)
@@ -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)
 {