]> git.ipfire.org Git - ipfire-3.x.git/blame - binutils/patches/binutils-2.19.1-asprintf_fix.patch
pakfire: Add platform patches.
[ipfire-3.x.git] / binutils / patches / binutils-2.19.1-asprintf_fix.patch
CommitLineData
ffca338b
MT
1https://hardened.gentooexperimental.org/trac/secure/raw-attachment/ticket/33/libiberty.h-asprintf-glibc-2.8.patch
2
3--- a/include/libiberty.h.orig 2007-02-09 15:29:21.000000000 +0000
4+++ b/include/libiberty.h 2008-07-25 21:17:25.000000000 +0000
5@@ -554,8 +554,11 @@
6 /* Like sprintf but provides a pointer to malloc'd storage, which must
7 be freed by the caller. */
8
9+/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */
10+#ifndef asprintf
11 extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
12 #endif
13+#endif
14
15 #if !HAVE_DECL_VASPRINTF
16 /* Like vsprintf but provides a pointer to malloc'd storage, which