Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libofa/files: libofa-0.9.3-gcc-4.7.patch
Date: Mon, 04 Jun 2012 12:51:48
Message-Id: 20120604125128.5AF3B2004B@flycatcher.gentoo.org
1 jlec 12/06/04 12:51:28
2
3 Added: libofa-0.9.3-gcc-4.7.patch
4 Log:
5 Add gcc-4.7 compatibility patch from fedora, #414141
6
7 (Portage version: 2.2.0_alpha109/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch?rev=1.1&content-type=text/plain
14
15 Index: libofa-0.9.3-gcc-4.7.patch
16 ===================================================================
17 diff -up libofa-0.9.3/examples/uselame.cpp.gcc47 libofa-0.9.3/examples/uselame.cpp
18 --- libofa-0.9.3/examples/uselame.cpp.gcc47 2012-01-14 09:35:24.343146853 -0600
19 +++ libofa-0.9.3/examples/uselame.cpp 2012-01-14 09:35:49.956826634 -0600
20 @@ -12,6 +12,7 @@
21 #else
22 #include <sys/wait.h>
23 #endif
24 +#include <unistd.h>
25
26 AudioData *loadWaveFile(char *file);
27
28 diff -up libofa-0.9.3/examples/wavefile.cpp.gcc47 libofa-0.9.3/examples/wavefile.cpp
29 --- libofa-0.9.3/examples/wavefile.cpp.gcc47 2012-01-14 09:35:24.344146841 -0600
30 +++ libofa-0.9.3/examples/wavefile.cpp 2012-01-14 16:00:54.414981160 -0600
31 @@ -11,6 +11,7 @@
32 #include "io.h"
33 #endif
34 #include <fcntl.h>
35 +#include <unistd.h>
36
37 static bool readBytes(int fd, unsigned char *buf, int size) {
38 int ct = 0;