patches/gcc/4.4.3/200-libiberty.h-asprintf.patch
changeset 1752 2a0656d9c905
parent 1611 e2516bba8fe5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.4.3/200-libiberty.h-asprintf.patch	Sun Jan 24 22:53:51 2010 +0100
     1.3 @@ -0,0 +1,15 @@
     1.4 +diff -durN gcc-4.4.0.orig/include/libiberty.h gcc-4.4.0/include/libiberty.h
     1.5 +--- gcc-4.4.0.orig/include/libiberty.h	2008-06-24 03:42:31.000000000 +0200
     1.6 ++++ gcc-4.4.0/include/libiberty.h	2009-05-27 21:38:24.000000000 +0200
     1.7 +@@ -595,8 +595,11 @@
     1.8 + /* Like sprintf but provides a pointer to malloc'd storage, which must
     1.9 +    be freed by the caller.  */
    1.10 + 
    1.11 ++/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL.  */
    1.12 ++#ifndef asprintf
    1.13 + extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
    1.14 + #endif
    1.15 ++#endif
    1.16 + 
    1.17 + #if !HAVE_DECL_VASPRINTF
    1.18 + /* Like vsprintf but provides a pointer to malloc'd storage, which