Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
Subject: gentoo-x86 commit in net-libs/libproxy/files: libproxy-0.4.7-gcc-4.7.patch
Date: Sat, 26 May 2012 08:57:11 +0000 (UTC)
tetromino    12/05/26 08:57:11

  Added:                libproxy-0.4.7-gcc-4.7.patch
  Log:
  Fix building with gcc-4.7 (bug #412363, thanks to Alphat-PC, Philipp Richter et al.)
  
  (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-libs/libproxy/files/libproxy-0.4.7-gcc-4.7.patch

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
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

Index: libproxy-0.4.7-gcc-4.7.patch
===================================================================
From 8dbcf9b358f50f7a7c1f1368d167999c31b1e86b Mon Sep 17 00:00:00 2001
From: "dominique.leuenberger@..."
 <dominique.leuenberger@...@c587cffe-e639-0410-9787-d7902ae8ed56>
Date: Fri, 9 Mar 2012 17:47:15 +0000
Subject: [PATCH] Fix build with gcc 4.7. Fixes issue 173

git-svn-id: http://libproxy.googlecode.com/svn/trunk@833 c587cffe-e639-0410-9787-d7902ae8ed56
---
 libproxy/modules/config_sysconfig.cpp |    3 +++
 libproxy/modules/pacrunner_mozjs.cpp  |    1 +
 libproxy/modules/pacrunner_natus.cpp  |    1 +
 libproxy/modules/pacrunner_webkit.cpp |    1 +
 libproxy/url.cpp                      |    1 +
 5 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libproxy/modules/config_sysconfig.cpp b/libproxy/modules/config_sysconfig.cpp
index 616585a..6e97ae8 100644
--- a/libproxy/modules/config_sysconfig.cpp
+++ b/libproxy/modules/config_sysconfig.cpp
@@ -21,6 +21,9 @@
 #include <cstdlib>
 #include <map>
 #include <fstream>
+#include <unistd.h>
+#include <sys/types.h>
+
 
 #include "../extension_config.hpp"
 using namespace libproxy;
diff --git a/libproxy/modules/pacrunner_mozjs.cpp b/libproxy/modules/pacrunner_mozjs.cpp
index 3283e91..abb4b9d 100644
--- a/libproxy/modules/pacrunner_mozjs.cpp
+++ b/libproxy/modules/pacrunner_mozjs.cpp
@@ -18,6 +18,7 @@
  ******************************************************************************/
 
 #include <cstring> // ?
+#include <unistd.h> // gethostname
 
 #include "../extension_pacrunner.hpp"
 using namespace libproxy;
diff --git a/libproxy/modules/pacrunner_natus.cpp b/libproxy/modules/pacrunner_natus.cpp
index f7bd4fc..ce79943 100644
--- a/libproxy/modules/pacrunner_natus.cpp
+++ b/libproxy/modules/pacrunner_natus.cpp
@@ -18,6 +18,7 @@
  ******************************************************************************/
 
 #include "../extension_pacrunner.hpp"
+#include <unistd.h> // gethostname
 using namespace libproxy;
 
 #define I_ACKNOWLEDGE_THAT_NATUS_IS_NOT_STABLE
diff --git a/libproxy/modules/pacrunner_webkit.cpp b/libproxy/modules/pacrunner_webkit.cpp
index b9abf34..c51b869 100644
--- a/libproxy/modules/pacrunner_webkit.cpp
+++ b/libproxy/modules/pacrunner_webkit.cpp
@@ -18,6 +18,7 @@
  ******************************************************************************/
 
 #include "../extension_pacrunner.hpp"
+#include <unistd.h> // gethostname
 using namespace libproxy;
 
 #ifdef __APPLE__
diff --git a/libproxy/url.cpp b/libproxy/url.cpp
index df75022..cd781df 100644
--- a/libproxy/url.cpp
+++ b/libproxy/url.cpp
@@ -33,6 +33,7 @@
 #include <cstdlib>    // For atoi()
 #include <sys/stat.h> // For stat()
 #include <algorithm> // For transform()
+#include <unistd.h>  // For read() close()
 
 #ifdef WIN32
 #include <io.h>
-- 
1.7.8.6






Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in dev-libs/libxml2: ChangeLog libxml2-2.8.0-r1.ebuild libxml2-2.8.0.ebuild
Next by thread:
gentoo-x86 commit in dev-lang/python: ChangeLog python-2.6.8.ebuild python-2.7.3-r1.ebuild
Previous by date:
gentoo-x86 commit in dev-libs/libxml2: ChangeLog libxml2-2.8.0-r1.ebuild libxml2-2.8.0.ebuild
Next by date:
gentoo-x86 commit in net-libs/libproxy: ChangeLog libproxy-0.4.7.ebuild


Updated Jun 26, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.