Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Call BFD_NEEDED_DECLARATION on strstr and realloc. * acconfig.h (NEED_DECLARATION_STRSTR): New macro. (NEED_DECLARATION_REALLOC): New macro. * configure, config.in: Rebuild. * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR. (realloc): Declare if NEED_DECLARATION_REALLOC.
This commit is contained in:
parent
e0effbaea2
commit
85fe9d3e46
3 changed files with 31 additions and 3 deletions
|
@ -1,3 +1,18 @@
|
||||||
|
Wed Aug 7 14:11:44 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
|
||||||
|
|
||||||
|
* configure.in: Call BFD_NEEDED_DECLARATION on strstr and
|
||||||
|
realloc.
|
||||||
|
* acconfig.h (NEED_DECLARATION_STRSTR): New macro.
|
||||||
|
(NEED_DECLARATION_REALLOC): New macro.
|
||||||
|
* configure, config.in: Rebuild.
|
||||||
|
* sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
|
||||||
|
(realloc): Declare if NEED_DECLARATION_REALLOC.
|
||||||
|
|
||||||
|
* aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
|
||||||
|
<strings.h> if they exist.
|
||||||
|
|
||||||
|
* ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
|
||||||
|
|
||||||
Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
|
Wed Aug 7 12:12:03 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
Based on patches from Eric Valette <valette@crf.canon.fr>:
|
Based on patches from Eric Valette <valette@crf.canon.fr>:
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
|
|
||||||
|
/* Whether strstr must be declared even if <string.h> is included. */
|
||||||
|
#undef NEED_DECLARATION_STRSTR
|
||||||
|
|
||||||
/* Whether malloc must be declared even if <stdlib.h> is included. */
|
/* Whether malloc must be declared even if <stdlib.h> is included. */
|
||||||
#undef NEED_DECLARATION_MALLOC
|
#undef NEED_DECLARATION_MALLOC
|
||||||
|
|
||||||
|
/* Whether realloc must be declared even if <stdlib.h> is included. */
|
||||||
|
#undef NEED_DECLARATION_REALLOC
|
||||||
|
|
||||||
/* Whether free must be declared even if <stdlib.h> is included. */
|
/* Whether free must be declared even if <stdlib.h> is included. */
|
||||||
#undef NEED_DECLARATION_FREE
|
#undef NEED_DECLARATION_FREE
|
||||||
@TOP@
|
@TOP@
|
||||||
|
|
13
bfd/sysdep.h
13
bfd/sysdep.h
|
@ -46,7 +46,6 @@ extern int errno;
|
||||||
#else
|
#else
|
||||||
extern char *strchr ();
|
extern char *strchr ();
|
||||||
extern char *strrchr ();
|
extern char *strrchr ();
|
||||||
extern char *strstr ();
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -54,11 +53,11 @@ extern char *strstr ();
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TIME_WITH_SYS_TIME
|
#ifdef TIME_WITH_SYS_TIME
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#else
|
#else
|
||||||
#if HAVE_SYS_TIME_H
|
#ifdef HAVE_SYS_TIME_H
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#else
|
#else
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -103,10 +102,18 @@ extern char *strstr ();
|
||||||
#define SEEK_CUR 1
|
#define SEEK_CUR 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_DECLARATION_STRSTR
|
||||||
|
extern char *strstr ();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef NEED_DECLARATION_MALLOC
|
#ifdef NEED_DECLARATION_MALLOC
|
||||||
extern PTR malloc ();
|
extern PTR malloc ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_DECLARATION_REALLOC
|
||||||
|
extern PTR realloc ();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef NEED_DECLARATION_FREE
|
#ifdef NEED_DECLARATION_FREE
|
||||||
extern void free ();
|
extern void free ();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue