aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-01-21 13:14:02 +0000
committerMark Kettenis <kettenis@gnu.org>2005-01-21 13:14:02 +0000
commita3828db05a4f4b107b8ab4210f5f7e882786a365 (patch)
treec537993ee89fe990bbf8d59312ab7f0c1b2eaa7a /gdb/utils.c
parentb717d30eb550a5418757c32f232a01e7620f640d (diff)
downloadgdb-a3828db05a4f4b107b8ab4210f5f7e882786a365.zip
gdb-a3828db05a4f4b107b8ab4210f5f7e882786a365.tar.gz
gdb-a3828db05a4f4b107b8ab4210f5f7e882786a365.tar.bz2
* configure.ac: Use AC_CHECK_DECLS instead of gcc_AC_CHECK_DECLS
and BFD_NEED_DECLARATION. Don't check if a declaration of strdup is necessary. * configure, config.in: Regenerate. * utils.c: Adjust for usage of AC_CHECK_DECLS instead of BFD_NEED_DECLARATION. Never provide a prototype for caninicalize_file_name. * gdb_string.h: Adjust for usage of AC_CHECK_DECLS instead of BFD_NEED_DECLARATION.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 55ee7ec..1bdcb63 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -62,20 +62,15 @@
#include "readline/readline.h"
-#ifdef NEED_DECLARATION_MALLOC
+#if !HAVE_DECL_MALLOC
extern PTR malloc (); /* OK: PTR */
#endif
-#ifdef NEED_DECLARATION_REALLOC
+#if !HAVE_DECL_REALLOC
extern PTR realloc (); /* OK: PTR */
#endif
-#ifdef NEED_DECLARATION_FREE
+#if !HAVE_DECL_FREE
extern void free ();
#endif
-/* Actually, we'll never have the decl, since we don't define _GNU_SOURCE. */
-#if defined(HAVE_CANONICALIZE_FILE_NAME) \
- && defined(NEED_DECLARATION_CANONICALIZE_FILE_NAME)
-extern char *canonicalize_file_name (const char *);
-#endif
/* readline defines this. */
#undef savestring