aboutsummaryrefslogtreecommitdiff
path: root/gold/gold.h
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2009-06-23 18:10:42 +0000
committerDoug Kwan <dougkwan@google.com>2009-06-23 18:10:42 +0000
commit3d857b98f555ee56c6fa6ed90c024424215574ed (patch)
treec68df6e845e52dc25b22b566e7d61de85004920f /gold/gold.h
parent27aa8d6aa032b25160328cd92c78c4f8158fa0b7 (diff)
downloadgdb-3d857b98f555ee56c6fa6ed90c024424215574ed.zip
gdb-3d857b98f555ee56c6fa6ed90c024424215574ed.tar.gz
gdb-3d857b98f555ee56c6fa6ed90c024424215574ed.tar.bz2
2009-06-23 Doug Kwan <dougkwan@google.com>
* Makefile.am (libgold_a_LIBADD): New. (ld_new_DEPENDENCIES, ld_new_LDADD): Remove LIBOBJS * Makefile.in: Regenerate. * config.in (HAVE_DECL_MEMMEM, HAVE_DECL_STRNDUP): New. * configure: Regenerate. * configure.ac (AC_CHECK_DECLS): Add strndup and memmem. * fileread.cc: Include sys/state.h * gold.h: Declare memmem and strndup if found missing. * gold_reloc.h: Include byteswap.h if HAVE_BYTESWAP_H is defined.
Diffstat (limited to 'gold/gold.h')
-rw-r--r--gold/gold.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/gold.h b/gold/gold.h
index bf014e8..9dca4a8 100644
--- a/gold/gold.h
+++ b/gold/gold.h
@@ -141,6 +141,14 @@ extern "C" void *mremap(void *, size_t, size_t, int, ...);
extern "C" int ffsll(long long);
#endif
+#if !HAVE_DECL_MEMMEM
+extern "C" void *memmem(const void *, size_t, const void *, size_t);
+#endif
+
+#if !HAVE_DECL_STRNDUP
+extern "C" char *strndup(const char *, size_t);
+#endif
+
namespace gold
{