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]

[PATCH] missing declaration in libiberty.h


include/libiberty.h seems to be missing a prototype for stpcpy, which is now
used in binutils/readelf.c.

2005-08-16  Jeff Baker  <jbaker@qnx.com>

	* libiberty.h (stpcpy): Prototype.


Index: libiberty.h
===================================================================
RCS file: /cvs/src/src/include/libiberty.h,v
retrieving revision 1.49
diff -c -p -r1.49 libiberty.h
*** libiberty.h 21 Jun 2005 00:28:25 -0000      1.49
--- libiberty.h 16 Aug 2005 14:21:37 -0000
*************** extern int vsnprintf (char *, size_t, co
*** 545,550 ****
--- 545,554 ----
  extern int strverscmp (const char *, const char *);
  #endif

+ #if !HAVE_DECL_STPCPY
+ extern char *stpcpy (char *__dest, const char *__src);
+ #endif
+
  #define ARRAY_SIZE(a) (sizeof (a) / sizeof ((a)[0]))

  /* Drastically simplified alloca configurator.  If we're using GCC,


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