forked from jsonn/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add patch to fix Solaris 10 build, from Joern Clausen in PR 47867,
except that I rearranged the patch a bit and hopefully didn't mess it up.
- Loading branch information
dholland
committed
Jul 4, 2013
1 parent
59fa754
commit 8491ce8
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
$NetBSD: distinfo,v 1.19 2013/05/08 17:49:11 adam Exp $ | ||
$NetBSD: distinfo,v 1.20 2013/07/04 06:25:23 dholland Exp $ | ||
|
||
SHA1 (openexr-2.0.0.tar.gz) = 774ae69ac01bbe4443b6fa0a9b12e276d0af44f5 | ||
RMD160 (openexr-2.0.0.tar.gz) = a8f69447bcff1d7c4881b33fdb12f61a702c2caf | ||
Size (openexr-2.0.0.tar.gz) = 12589533 bytes | ||
SHA1 (patch-IlmImf_ImfSystemSpecific.h) = f36d049085e42beabcf5f7af5354009391a1f9f2 | ||
SHA1 (patch-aa) = e8a6349203327937923367995a6721a5159ac7cf | ||
SHA1 (patch-ab) = df9a5ceea5702c08265ea884813c965122241802 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
$NetBSD: patch-IlmImf_ImfSystemSpecific.h,v 1.1 2013/07/04 06:25:23 dholland Exp $ | ||
|
||
Work around lack of posix_memalign() on (some?) Solaris, from PR 47867. | ||
|
||
--- IlmImf/ImfSystemSpecific.h~ 2013-04-09 17:08:02.000000000 +0000 | ||
+++ IlmImf/ImfSystemSpecific.h | ||
@@ -60,9 +60,13 @@ static bool GLOBAL_SYSTEM_LITTLE_ENDIAN | ||
|
||
static void* EXRAllocAligned(size_t size, size_t alignment) | ||
{ | ||
+#ifdef __sun | ||
+ return memalign(alignment, size); | ||
+#else | ||
void* ptr = 0; | ||
posix_memalign(&ptr, alignment, size); | ||
return ptr; | ||
+#endif | ||
} | ||
|
||
|