Implicit declaration fixes, libiberty
Jeffrey A Law
law@cygnus.com
Mon May 29 10:47:00 GMT 2000
In message <20000527221807.S10272@wolery.cumb.org>you write:
> This is a wee bit hairier than the fixes in the target only libraries.
> I've not made any effort to find prototypes in non-ANSI headers
> (strings.h, memory.h, etc), but the defaults should be sane.
>
> zw
>
>
> * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
> if HAVE_STRING_H.
> * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
> * objalloc.c: Include config.h. Include stdlib.h and don't
> declare malloc or free if HAVE_STDLIB_H.
> * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
> else declare malloc without prototype. Include string.h if
> HAVE_STRING_H, else declare memset without prototype. Don't
> include stddef.h.
This is fine. Please install it into the combined binutils/gdb repository too.
Thanks,
jeff
More information about the Gdb-patches
mailing list