Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/libproxy/files: libproxy-0.4.7-gcc-4.7.patch
Date: Sat, 26 May 2012 08:57:22
Message-Id: 20120526085711.A28B62004C@flycatcher.gentoo.org
1 tetromino 12/05/26 08:57:11
2
3 Added: libproxy-0.4.7-gcc-4.7.patch
4 Log:
5 Fix building with gcc-4.7 (bug #412363, thanks to Alphat-PC, Philipp Richter et al.)
6
7 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-libs/libproxy/files/libproxy-0.4.7-gcc-4.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libproxy/files/libproxy-0.4.7-gcc-4.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libproxy/files/libproxy-0.4.7-gcc-4.7.patch?rev=1.1&content-type=text/plain
14
15 Index: libproxy-0.4.7-gcc-4.7.patch
16 ===================================================================
17 From 8dbcf9b358f50f7a7c1f1368d167999c31b1e86b Mon Sep 17 00:00:00 2001
18 From: "dominique.leuenberger@×××××.com"
19 <dominique.leuenberger@×××××.com@c587cffe-e639-0410-9787-d7902ae8ed56>
20 Date: Fri, 9 Mar 2012 17:47:15 +0000
21 Subject: [PATCH] Fix build with gcc 4.7. Fixes issue 173
22
23 git-svn-id: http://libproxy.googlecode.com/svn/trunk@833 c587cffe-e639-0410-9787-d7902ae8ed56
24 ---
25 libproxy/modules/config_sysconfig.cpp | 3 +++
26 libproxy/modules/pacrunner_mozjs.cpp | 1 +
27 libproxy/modules/pacrunner_natus.cpp | 1 +
28 libproxy/modules/pacrunner_webkit.cpp | 1 +
29 libproxy/url.cpp | 1 +
30 5 files changed, 7 insertions(+), 0 deletions(-)
31
32 diff --git a/libproxy/modules/config_sysconfig.cpp b/libproxy/modules/config_sysconfig.cpp
33 index 616585a..6e97ae8 100644
34 --- a/libproxy/modules/config_sysconfig.cpp
35 +++ b/libproxy/modules/config_sysconfig.cpp
36 @@ -21,6 +21,9 @@
37 #include <cstdlib>
38 #include <map>
39 #include <fstream>
40 +#include <unistd.h>
41 +#include <sys/types.h>
42 +
43
44 #include "../extension_config.hpp"
45 using namespace libproxy;
46 diff --git a/libproxy/modules/pacrunner_mozjs.cpp b/libproxy/modules/pacrunner_mozjs.cpp
47 index 3283e91..abb4b9d 100644
48 --- a/libproxy/modules/pacrunner_mozjs.cpp
49 +++ b/libproxy/modules/pacrunner_mozjs.cpp
50 @@ -18,6 +18,7 @@
51 ******************************************************************************/
52
53 #include <cstring> // ?
54 +#include <unistd.h> // gethostname
55
56 #include "../extension_pacrunner.hpp"
57 using namespace libproxy;
58 diff --git a/libproxy/modules/pacrunner_natus.cpp b/libproxy/modules/pacrunner_natus.cpp
59 index f7bd4fc..ce79943 100644
60 --- a/libproxy/modules/pacrunner_natus.cpp
61 +++ b/libproxy/modules/pacrunner_natus.cpp
62 @@ -18,6 +18,7 @@
63 ******************************************************************************/
64
65 #include "../extension_pacrunner.hpp"
66 +#include <unistd.h> // gethostname
67 using namespace libproxy;
68
69 #define I_ACKNOWLEDGE_THAT_NATUS_IS_NOT_STABLE
70 diff --git a/libproxy/modules/pacrunner_webkit.cpp b/libproxy/modules/pacrunner_webkit.cpp
71 index b9abf34..c51b869 100644
72 --- a/libproxy/modules/pacrunner_webkit.cpp
73 +++ b/libproxy/modules/pacrunner_webkit.cpp
74 @@ -18,6 +18,7 @@
75 ******************************************************************************/
76
77 #include "../extension_pacrunner.hpp"
78 +#include <unistd.h> // gethostname
79 using namespace libproxy;
80
81 #ifdef __APPLE__
82 diff --git a/libproxy/url.cpp b/libproxy/url.cpp
83 index df75022..cd781df 100644
84 --- a/libproxy/url.cpp
85 +++ b/libproxy/url.cpp
86 @@ -33,6 +33,7 @@
87 #include <cstdlib> // For atoi()
88 #include <sys/stat.h> // For stat()
89 #include <algorithm> // For transform()
90 +#include <unistd.h> // For read() close()
91
92 #ifdef WIN32
93 #include <io.h>
94 --
95 1.7.8.6