aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_string.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-10-06 22:24:40 +0000
committerJason Molenda <jmolenda@apple.com>1998-10-06 22:24:40 +0000
commit87feff9dabae11e6df45924c733a6ea9368713d1 (patch)
treecb5f70ae9a6332112663264599818cd507d0f691 /gdb/gdb_string.h
parent1a113a4cdc66942fc4942276aff3b853bf6a91db (diff)
downloadgdb-87feff9dabae11e6df45924c733a6ea9368713d1.zip
gdb-87feff9dabae11e6df45924c733a6ea9368713d1.tar.gz
gdb-87feff9dabae11e6df45924c733a6ea9368713d1.tar.bz2
1998-10-06 Jason Molenda (jsm@bugshack.cygnus.com)
Eliminate a few warnings from the compiler. * breakpoint.h: Add prototype. * breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void). * configure.in: Check if strdup declaration is necessary. * configure: Regenerated. * defs.h: Add prototypes. * gdb_string.h: Only define strdup if necessary. * gdbthread.h: Add prototypes. * printcmd.c: Add prototyptes. (disassemble_command): Remove unused variable 'section'. * symtab.c: Add prototypes. * symtab.h: Include gnu-regex.h, add prototype. * thread.c: Add prototype.
Diffstat (limited to 'gdb/gdb_string.h')
-rw-r--r--gdb/gdb_string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdb_string.h b/gdb/gdb_string.h
index 4001fab..944eec1 100644
--- a/gdb/gdb_string.h
+++ b/gdb/gdb_string.h
@@ -1,5 +1,5 @@
/* Portable <string.h>
- Copyright 1995 Free Software Foundation, Inc.
+ Copyright 1995, 1998 Free Software Foundation, Inc.
This file is part of GDB.
@@ -61,7 +61,7 @@ extern char *strerror PARAMS ((int)); /* X3.159-1989 4.11.6.2 */
#endif
#endif
-#ifndef strdup
+#ifdef NEED_DECLARATION_STRDUP
extern char *strdup (); /* full prototype collides w/ some OSes (AIX 3.2.5) */
#endif