diff options
author | DJ Delorie <dj@delorie.com> | 2004-09-08 22:01:25 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2004-09-08 22:01:25 +0000 |
commit | 93702914747f9489e140340770b5a5db8548dc77 (patch) | |
tree | 8907ffc6735daff9ee26b1c2239a8ce4110df27e /libiberty | |
parent | f0ca976a30378c642861b7bf77a745cd122f0e1a (diff) | |
download | gdb-93702914747f9489e140340770b5a5db8548dc77.tar.gz |
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/vasprintf.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 12dbff8de69..c8ea3331525 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2004-09-08 Adam Nemet <anemet@lnxw.com> + + * vasprintf.c: Accept __va_copy in addition to va_copy. + 2004-09-03 Paolo Bonzini <bonzini@gnu.org> * configure: Regenerate. diff --git a/libiberty/vasprintf.c b/libiberty/vasprintf.c index d3d4f3a1553..7eaf2b18d6f 100644 --- a/libiberty/vasprintf.c +++ b/libiberty/vasprintf.c @@ -27,6 +27,9 @@ Boston, MA 02111-1307, USA. */ #else #include <varargs.h> #endif +#if !defined (va_copy) && defined (__va_copy) +# define va_copy(d,s) __va_copy((d),(s)) +#endif #include <stdio.h> #ifdef HAVE_STRING_H #include <string.h> |