Thu Apr 23 12:52:21 1998 Philippe De Muyter <phdm@macqel.be>

* configure.in (strerror): Check if function must be declared.
        * acconfig.h (NEED_DECLARATION_STRERROR): New define slot.
        * gdb_string.h (strerror): Function declaration issued if
        NEED_DECLARATION_STRERROR.
        * configure, config.in : Files regenerated.
This commit is contained in:
Jason Molenda 1998-04-23 19:53:35 +00:00
parent ca39bf77b0
commit 21cbc60c52
6 changed files with 292 additions and 235 deletions

View File

@ -1,3 +1,11 @@
Thu Apr 23 12:52:21 1998 Philippe De Muyter <phdm@macqel.be>
* configure.in (strerror): Check if function must be declared.
* acconfig.h (NEED_DECLARATION_STRERROR): New define slot.
* gdb_string.h (strerror): Function declaration issued if
NEED_DECLARATION_STRERROR.
* configure, config.in : Files regenerated.
Thu Apr 23 12:27:43 1998 Philippe De Muyter <phdm@macqel.be>
* symfile.c (simple_overlay_update_1): Do not prefix array address

View File

@ -7,6 +7,9 @@
/* Whether free must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_FREE
/* Whether strerror must be declared even if <string.h> is included. */
#undef NEED_DECLARATION_STRERROR
@TOP@
/* Define if fpregset_t type is available. */

View File

@ -9,6 +9,9 @@
/* Whether free must be declared even if <stdlib.h> is included. */
#undef NEED_DECLARATION_FREE
/* Whether strerror must be declared even if <string.h> is included. */
#undef NEED_DECLARATION_STRERROR
/* Define if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */

501
gdb/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -200,6 +200,8 @@ BFD_NEED_DECLARATION(malloc)
BFD_NEED_DECLARATION(realloc)
BFD_NEED_DECLARATION(free)
BFD_NEED_DECLARATION(strerror)
dnl See if thread_db library is around for Solaris thread debugging. Note that
dnl we must explicitly test for version 1 of the library because version 0
dnl (present on Solaris 2.4 or earlier) doesn't have the same API.

View File

@ -45,10 +45,6 @@ extern char *strstr PARAMS ((const char *, const char *)); /* X3.159-1989 4.11.
extern char *strtok PARAMS ((char *, const char *)); /* X3.159-1989 4.11.5.8 */
#endif
#ifndef strerror
extern char *strerror PARAMS ((int)); /* X3.159-1989 4.11.6.2 */
#endif
# ifdef HAVE_MEMORY_H
# include <memory.h>
# else
@ -57,6 +53,12 @@ extern void *memcpy();
extern void *memmove();
extern int memcmp();
# endif
#endif /* STDC_HEADERS */
#ifdef NEED_DECLARATION_STRERROR
#ifndef strerror
extern char *strerror PARAMS ((int)); /* X3.159-1989 4.11.6.2 */
#endif
#endif
#ifndef strdup