patches/gcc/4.4.4/200-libiberty.h-asprintf.patch
changeset 1953 a93af06e180d
child 2148 ada9128c98b8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.4.4/200-libiberty.h-asprintf.patch	Sun May 16 19:41:53 2010 +0200
     1.3 @@ -0,0 +1,17 @@
     1.4 +diff -durN gcc-4.4.0.orig/include/libiberty.h gcc-4.4.0/include/libiberty.h
     1.5 +
     1.6 +diff -durN gcc-4.4.4.orig/include/libiberty.h gcc-4.4.4/include/libiberty.h
     1.7 +--- gcc-4.4.4.orig/include/libiberty.h	2008-06-24 03:42:31.000000000 +0200
     1.8 ++++ gcc-4.4.4/include/libiberty.h	2010-05-16 19:12:50.000000000 +0200
     1.9 +@@ -595,8 +595,11 @@
    1.10 + /* Like sprintf but provides a pointer to malloc'd storage, which must
    1.11 +    be freed by the caller.  */
    1.12 + 
    1.13 ++/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL.  */
    1.14 ++#ifndef asprintf
    1.15 + extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
    1.16 + #endif
    1.17 ++#endif
    1.18 + 
    1.19 + #if !HAVE_DECL_VASPRINTF
    1.20 + /* Like vsprintf but provides a pointer to malloc'd storage, which