aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gcc6/050_all_libiberty-asprintf.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-11-28 15:35:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-11-28 15:36:20 +0000
commitf76673fb030820b2053cad7e5b81ece31079d4cc (patch)
tree76c4bead9f194774c9e62faec59181fefb1a521c /testing/gcc6/050_all_libiberty-asprintf.patch
parentbee941037412f7cad59a6cbe9965568dc5052040 (diff)
downloadaports-f76673fb030820b2053cad7e5b81ece31079d4cc.tar.bz2
aports-f76673fb030820b2053cad7e5b81ece31079d4cc.tar.xz
testing/gcc6: new aport
gcc6-java is needed for bootstrapping openjdk7
Diffstat (limited to 'testing/gcc6/050_all_libiberty-asprintf.patch')
-rw-r--r--testing/gcc6/050_all_libiberty-asprintf.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/gcc6/050_all_libiberty-asprintf.patch b/testing/gcc6/050_all_libiberty-asprintf.patch
new file mode 100644
index 0000000000..bee0c4c237
--- /dev/null
+++ b/testing/gcc6/050_all_libiberty-asprintf.patch
@@ -0,0 +1,18 @@
+2008-07-25 Magnus Granberg <zorry@ume.nu>
+
+ * include/libiberty.h (asprintf): Don't declare if defined as a macro
+
+--- a/include/libiberty.h
++++ b/include/libiberty.h
+@@ -609,8 +609,11 @@ extern int pwait (int, int *, int);
+ /* Like sprintf but provides a pointer to malloc'd storage, which must
+ be freed by the caller. */
+
++/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */
++#ifndef asprintf
+ extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
+ #endif
++#endif
+
+ #if !HAVE_DECL_VASPRINTF
+ /* Like vsprintf but provides a pointer to malloc'd storage, which