Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-cpp/libassa/files: libassa-3.5.0-gcc44.patch
Date: Fri, 04 Sep 2009 05:24:52
Message-Id: E1MjW6c-0002AE-Qu@stork.gentoo.org
1 ssuominen 09/09/04 10:33:22
2
3 Added: libassa-3.5.0-gcc44.patch
4 Log:
5 Fix building with GCC 4.4+ wrt #281733.
6 (Portage version: 2.2_rc40/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch?rev=1.1&content-type=text/plain
13
14 Index: libassa-3.5.0-gcc44.patch
15 ===================================================================
16 For va_list in gcc 4.4+ and glibc system stdarg.h is always required. For gcc 4.4+ including stdio.h
17 is required because of headers clean up.
18
19 Patch by Samuli Suominen <ssuominen@g.o>
20
21 diff -ur libassa-3.5.0.orig/assa/Logger_Impl.cpp libassa-3.5.0/assa/Logger_Impl.cpp
22 --- libassa-3.5.0.orig/assa/Logger_Impl.cpp 2006-07-20 05:30:54.000000000 +0300
23 +++ libassa-3.5.0/assa/Logger_Impl.cpp 2009-09-04 13:26:26.000000000 +0300
24 @@ -14,6 +14,7 @@
25
26 #include <iostream>
27 #include <iomanip>
28 +#include <stdio.h> // vsnprintf(3)
29 #include <string.h> // strerror(3)
30
31 #include "assa/TimeVal.h"
32 diff -ur libassa-3.5.0.orig/assa/Logger_Impl.h libassa-3.5.0/assa/Logger_Impl.h
33 --- libassa-3.5.0.orig/assa/Logger_Impl.h 2006-07-20 05:30:54.000000000 +0300
34 +++ libassa-3.5.0/assa/Logger_Impl.h 2009-09-04 13:29:45.000000000 +0300
35 @@ -21,7 +21,7 @@
36 #include <sys/varargs.h> // va_list
37 #endif
38
39 -#if defined (__CYGWIN32__) || defined (__NetBSD__) || defined (WIN32)
40 +#if defined (__CYGWIN32__) || defined (__NetBSD__) || defined (WIN32) || defined (__GLIBC__)
41 # include <stdarg.h>
42 #endif