Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/nvidia-texture-tools/files: nvidia-texture-tools-2.0.8-gcc-4.7.patch
Date: Fri, 29 Jun 2012 08:26:37
Message-Id: 20120629082626.804092004C@flycatcher.gentoo.org
1 hasufell 12/06/29 08:26:26
2
3 Added: nvidia-texture-tools-2.0.8-gcc-4.7.patch
4 Log:
5 fix compilation on gcc-4.7 wrt bug #423965
6
7 (Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-gcc-4.7.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-gcc-4.7.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/nvidia-texture-tools/files/nvidia-texture-tools-2.0.8-gcc-4.7.patch?rev=1.1&content-type=text/plain
14
15 Index: nvidia-texture-tools-2.0.8-gcc-4.7.patch
16 ===================================================================
17 From: Julian Ospald <hasufell@g.o>
18 Date: Fri Jun 29 08:15:12 UTC 2012
19 Subject: fix compilation on gcc 4.7
20
21 https://bugs.gentoo.org/show_bug.cgi?id=423965
22
23 --- src/nvcore/nvcore.h
24 +++ src/nvcore/nvcore.h
25 @@ -158,6 +158,7 @@
26 #elif NV_CC_GNUC
27 # if NV_OS_LINUX
28 # include "DefsGnucLinux.h"
29 +# include <unistd.h> // gcc 4.7
30 # elif NV_OS_DARWIN
31 # include "DefsGnucDarwin.h"
32 # elif NV_OS_MINGW