blob: 25f1121630983b6786f158be5e247ce68e0a1377 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$OpenBSD$
Index: src/util/disk_cache.h
--- src/util/disk_cache.h.orig
+++ src/util/disk_cache.h
@@ -121,7 +121,7 @@ disk_cache_get_function_identifier(void *ptr, struct m
{
uint32_t timestamp;
-#ifdef HAVE_DL_ITERATE_PHDR
+#if defined(HAVE_DL_ITERATE_PHDR) && defined(HAVE_LD_BUILD_ID)
const struct build_id_note *note = NULL;
if ((note = build_id_find_nhdr_for_addr(ptr))) {
_mesa_sha1_update(ctx, build_id_data(note), build_id_length(note));
|