Gentoo Archives: gentoo-commits

From: "Michael Palimaka (kensington)" <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/gluon/files: gluon-0.71.0-gcc-4.7.patch
Date: Sun, 24 Jun 2012 17:13:57
Message-Id: 20120624171348.85A132004C@flycatcher.gentoo.org
kensington    12/06/24 17:13:48

  Added:                gluon-0.71.0-gcc-4.7.patch
  Log:
  Version bump. Add a patch from upstream to fix build with GCC 4.7, wrt bug #423337.
  
  (Portage version: 2.1.11.1/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  media-libs/gluon/files/gluon-0.71.0-gcc-4.7.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gluon/files/gluon-0.71.0-gcc-4.7.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gluon/files/gluon-0.71.0-gcc-4.7.patch?rev=1.1&content-type=text/plain

Index: gluon-0.71.0-gcc-4.7.patch
===================================================================
commit bccbda88a6bc53ac20091bb6aefd2f1b501ba31a
Author: Christoph Feck <christoph@××××××.de>
Date:   Fri Mar 23 23:35:09 2012 +0100

    Fix includes

diff --git a/input/linux/detectlinux.cpp b/input/linux/detectlinux.cpp
index 632249a..6ae85a4 100644
--- a/input/linux/detectlinux.cpp
+++ b/input/linux/detectlinux.cpp
@@ -26,6 +26,7 @@
 
 #include <QtCore/QDir>
 
+#include <unistd.h>
 // #include <libudev.h>
 
 using namespace GluonInput;
diff --git a/input/linux/inputthread.cpp b/input/linux/inputthread.cpp
index f92b104..202745e 100644
--- a/input/linux/inputthread.cpp
+++ b/input/linux/inputthread.cpp
@@ -30,6 +30,7 @@
 // #include <QtCore/QStringList>
 
 #include <fcntl.h>
+#include <unistd.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <linux/input.h>