aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-impl.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-03-19 17:39:24 +1030
committerAlan Modra <amodra@gmail.com>2021-03-21 23:00:32 +1030
commite93388417c1ecc6d69b155045cabb994cb8687fd (patch)
tree24fa2ed727efd5a1775e4c8b76b8d92a5ae0ea10 /libctf/ctf-impl.h
parent38e41a88457d2fcab42596c5d0183e410868c813 (diff)
downloadgdb-e93388417c1ecc6d69b155045cabb994cb8687fd.zip
gdb-e93388417c1ecc6d69b155045cabb994cb8687fd.tar.gz
gdb-e93388417c1ecc6d69b155045cabb994cb8687fd.tar.bz2
Provide an inline startswith function in bfd.h
bfd/ * bfd-in.h (startswith): New inline. (CONST_STRNEQ): Use startswith. * bfd-in2.h: Regenerate. gdbsupport/ * common-utils.h (startswith): Delete version now supplied by bfd.h. libctf/ * ctf-impl.h: Include string.h.
Diffstat (limited to 'libctf/ctf-impl.h')
-rw-r--r--libctf/ctf-impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h
index ad4af32..342d2ff 100644
--- a/libctf/ctf-impl.h
+++ b/libctf/ctf-impl.h
@@ -32,6 +32,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdint.h>
+#include <string.h>
#include <limits.h>
#include <ctype.h>
#include <elf.h>