summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2017-09-13 11:51:04 -0700
committerChad Versace <[email protected]>2017-09-13 12:43:42 -0700
commitf9412a4e75eded35de2281c60efc2ebe1107400f (patch)
tree61a26c008f7fd6d8031849e0f367170a9c0afc0f /src/util
parent5c98d3825ccbed9054a1bb2de607116b2b31d48b (diff)
util/build_id: Include <dlfcn.h>
Fix the build for Android Nougat. The dladdr(3) manpage says that <dlfcn.h> is required. On Linux, the build succeeded without it because build_id.c includes <link.h> which includes <dlfcn.h>. On Android, we must include <dlfcn.h> directly. Fixes: 5c98d382 "util: Query build-id by symbol address, not library name" Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/build_id.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/build_id.c b/src/util/build_id.c
index 6280b4a54e3..536c74360ea 100644
--- a/src/util/build_id.c
+++ b/src/util/build_id.c
@@ -22,6 +22,7 @@
*/
#ifdef HAVE_DL_ITERATE_PHDR
+#include <dlfcn.h>
#include <link.h>
#include <stddef.h>
#include <string.h>