Index: src/util/build_id.c --- src/util/build_id.c.orig +++ src/util/build_id.c @@ -21,7 +21,7 @@ * IN THE SOFTWARE. */ -#ifdef HAVE_DL_ITERATE_PHDR +#if defined(HAVE_DL_ITERATE_PHDR) && defined(HAVE_LD_BUILD_ID) #include #include #include