diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-09-04 10:33:22 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-09-04 10:33:22 +0000 |
commit | d947ad95ddc5c97f477b02385db54ab56f9c7178 (patch) | |
tree | 413e9d1be80768a082bbeddd59386e86b0d468d9 /dev-cpp/libassa/files | |
parent | Version bump to 2.10.9 (diff) | |
download | gentoo-2-d947ad95ddc5c97f477b02385db54ab56f9c7178.tar.gz gentoo-2-d947ad95ddc5c97f477b02385db54ab56f9c7178.tar.bz2 gentoo-2-d947ad95ddc5c97f477b02385db54ab56f9c7178.zip |
Fix building with GCC 4.4+ wrt #281733.
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'dev-cpp/libassa/files')
-rw-r--r-- | dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch b/dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch new file mode 100644 index 000000000000..02e3f9232a8c --- /dev/null +++ b/dev-cpp/libassa/files/libassa-3.5.0-gcc44.patch @@ -0,0 +1,28 @@ +For va_list in gcc 4.4+ and glibc system stdarg.h is always required. For gcc 4.4+ including stdio.h +is required because of headers clean up. + +Patch by Samuli Suominen <ssuominen@gentoo.org> + +diff -ur libassa-3.5.0.orig/assa/Logger_Impl.cpp libassa-3.5.0/assa/Logger_Impl.cpp +--- libassa-3.5.0.orig/assa/Logger_Impl.cpp 2006-07-20 05:30:54.000000000 +0300 ++++ libassa-3.5.0/assa/Logger_Impl.cpp 2009-09-04 13:26:26.000000000 +0300 +@@ -14,6 +14,7 @@ + + #include <iostream> + #include <iomanip> ++#include <stdio.h> // vsnprintf(3) + #include <string.h> // strerror(3) + + #include "assa/TimeVal.h" +diff -ur libassa-3.5.0.orig/assa/Logger_Impl.h libassa-3.5.0/assa/Logger_Impl.h +--- libassa-3.5.0.orig/assa/Logger_Impl.h 2006-07-20 05:30:54.000000000 +0300 ++++ libassa-3.5.0/assa/Logger_Impl.h 2009-09-04 13:29:45.000000000 +0300 +@@ -21,7 +21,7 @@ + #include <sys/varargs.h> // va_list + #endif + +-#if defined (__CYGWIN32__) || defined (__NetBSD__) || defined (WIN32) ++#if defined (__CYGWIN32__) || defined (__NetBSD__) || defined (WIN32) || defined (__GLIBC__) + # include <stdarg.h> + #endif + |