summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2022-01-14 12:04:01 -0500
committerDodji Seketeli <dodji@redhat.com>2022-01-17 14:32:33 +0100
commit069ead6b55a05e90c64d2fa7224a05e62aaa9e5e (patch)
tree151e0606f5929b5003ed5fbe9e4b65c17916ffd1
parentBug 28191 - Interpret DWARF 5 addrx locations (diff)
downloadlibabigail-069ead6b55a05e90c64d2fa7224a05e62aaa9e5e.tar.gz
libabigail-069ead6b55a05e90c64d2fa7224a05e62aaa9e5e.tar.bz2
libabigail-069ead6b55a05e90c64d2fa7224a05e62aaa9e5e.tar.xz
Include <libgen.h> in tools/abisym.cc for basename(3)
Support building on non-glibc systems, such as musl, by including libgen.h for basename(3). Signed-off-by: David Cantrell <dcantrell@redhat.com>
-rw-r--r--tools/abisym.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/abisym.cc b/tools/abisym.cc
index e03a3222..a8fe19cd 100644
--- a/tools/abisym.cc
+++ b/tools/abisym.cc
@@ -10,6 +10,7 @@
10/// This program takes parameters to open an elf file, lookup a symbol 10/// This program takes parameters to open an elf file, lookup a symbol
11/// in its symbol tables and report what it sees. 11/// in its symbol tables and report what it sees.
12 12
13#include <libgen.h>
13#include <elf.h> 14#include <elf.h>
14#include <cstring> 15#include <cstring>
15#include <iostream> 16#include <iostream>