This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Check stpcpy for readelf.c


"H. J. Lu" <hjl@lucon.org> writes:

> 2005-08-13  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* bucomm.h (stpcpy): Declare if HAVE_DECL_STPCPY isn't defined.
> 
> 	* configure.in (AC_GNU_SOURCE): Added.
> 	(AC_CHECK_DECLS): Add stpcpy.
> 	* configure: Regenerated.
> 	* config.in: Likewise.

This is OK if you change this line:

> +extern char *stpcpy (char *__dest, const char *__src);

to not use any parameter names:

extern char *stpcpy (char *, const char *);

Thanks.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]