From: Ian Lance Taylor Date: Tue, 18 Mar 1997 21:51:04 +0000 (+0000) Subject: Tue Mar 18 16:39:55 1997 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce1f5b2a4ed4f8f9b921be61e3b33d9c2fcb6845;p=binutils-gdb.git Tue Mar 18 16:39:55 1997 H.J. Lu * Many files: Add function prototypes. * ar.c (mri_emul, get_pos_bfd): Make static. * arlex.l: Include "libiberty.h". Don't declare strdup. Use xstrdup rather than strdup. * arparse.y (yyerror): Make argument const. Correct typo. * arsup.c (strdup): Don't declare. (ar_save): Use xstrdup rather than strdup. * filemode.c: Include "bucomm.h". * nm.c (usage): Make static. (print_symname): Make format and name const. * objcopy.c (cat): Remove. (copy_archive): Make output_target const. Use concat, not cat. (copy_file, simple_copy, smart_rename): Make arguments const. * objdump.c (read_section_stabs): Likewise. (print_section_stabs): Likewise. (display_target_tables): Don't declare getenv. * strings.c (strings_object_file): Change file to const. (print_strings): Change filename to const. * Makefile.in: Rebuild dependencies. Tue Mar 18 11:37:24 1997 Ian Lance Taylor * configure.in: Add BFD_NEED_DECLARATION(getenv). * acconfig.h: Add NEED_DECLARATION_GETENV. * bucomm.h (getenv): Declare if NEED_DECLARATION_GETENV. * configure, config.in: Rebuild. * nlmconv.c (getenv): Don't declare. --- diff --git a/binutils/acconfig.h b/binutils/acconfig.h index a3e0eabae12..6ae3d768c35 100644 --- a/binutils/acconfig.h +++ b/binutils/acconfig.h @@ -7,6 +7,9 @@ /* Whether sbrk must be declared even if is included. */ #undef NEED_DECLARATION_SBRK + +/* Whether getenv must be declared even if is included. */ +#undef NEED_DECLARATION_GETENV @TOP@ /* Is the type time_t defined in ? */