void-packages/srcpkgs/gcc-multilib/patches/fix-inline_vfprintf.patch
Jürgen Buchmüller 0c7cfd6abe setup_pkg(): fix check for pkgname-32bit
+ Also update gcc-multilib to gcc-4.9.3

Trying to build `gcc-multilib` failed because `glibc-32bit`
has no separate `srcpkg/glibc-32bit/template`, but is a
result of building `glibc` for target arch `i686`.

For gcc-4.9.3 to build a patch is required that gets us rid
of strange errors when including /usr/include/bits/stdio2.h
2015-09-03 12:26:13 +02:00

26 lines
700 B
Diff

Work around a bug when compiling the definition for
vfprintf(2) in /usr/include/bits/stdio2.h, which does
not guarantee inlined code for _FORTIFY_SOURCE=2.
Here we just don't include <stdio.h> and declare
the required types and functions locally.
--- libitm/util.cc 2015-09-02 17:19:01.176016940 +0200
+++ libitm/util.cc 2015-09-02 17:20:03.045016757 +0200
@@ -24,10 +24,15 @@
#include "libitm_i.h"
#include <stdarg.h>
-#include <stdio.h>
+#define FILE void
+extern FILE* stderr;
+extern int fputs(const char*, FILE *);
+extern int fputc(char, FILE *);
+extern int vfprintf(FILE*, const char*, va_list);
+
namespace GTM HIDDEN {
static void
gtm_verror (const char *fmt, va_list list)
{