From: | "Christoph Junghans (ottxor)" <ottxor@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-gfx/povray/files: povray-3.7.0_rc6-darwin-defaults.patch |
Date: | Tue, 05 Mar 2013 01:34:05 |
Message-Id: | 20130305013402.CFA752171D@flycatcher.gentoo.org |
1 | ottxor 13/03/05 01:34:02 |
2 | |
3 | Added: povray-3.7.0_rc6-darwin-defaults.patch |
4 | Log: |
5 | added support for darwin |
6 | |
7 | (Portage version: 2.2.0_alpha165/cvs/Linux x86_64, signed Manifest commit with key C2000586) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-gfx/povray/files/povray-3.7.0_rc6-darwin-defaults.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/files/povray-3.7.0_rc6-darwin-defaults.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/povray/files/povray-3.7.0_rc6-darwin-defaults.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: povray-3.7.0_rc6-darwin-defaults.patch |
16 | =================================================================== |
17 | # Darwin does not support thread-local storage (__thread) |
18 | # http://lists.apple.com/archives/xcode-users/2006/Jun/msg00551.html |
19 | # so use default from boost thread |
20 | |
21 | # use lseek for lseek64 |
22 | # sys/types.h is needed because of uint |
23 | |
24 | --- povray-3.7.0.RC6/vfe/unix/syspovconfig.h.orig 2013-03-01 11:09:42.000000000 -0700 |
25 | +++ povray-3.7.0.RC6/vfe/unix/syspovconfig.h 2013-03-01 11:07:14.000000000 -0700 |
26 | @@ -171,9 +171,7 @@ |
27 | #define METADATA_PLATFORM_STRING BUILD_ARCH |
28 | #define METADATA_COMPILER_STRING COMPILER_VERSION |
29 | |
30 | -#define DECLARE_THREAD_LOCAL_PTR(ptrType, ptrName) __thread ptrType *ptrName |
31 | -#define IMPLEMENT_THREAD_LOCAL_PTR(ptrType, ptrName, ignore) __thread ptrType *ptrName |
32 | -#define GET_THREAD_LOCAL_PTR(ptrName) (ptrName) |
33 | -#define SET_THREAD_LOCAL_PTR(ptrName, ptrValue) (ptrName = ptrValue) |
34 | +#define lseek64 lseek |
35 | +#include <sys/types.h> |
36 | |
37 | #endif |