Skip to content

Commit

Permalink
Add patch to fix Solaris 10 build, from Joern Clausen in PR 47867,
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphics/openexr/distinfo
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
20 changes: 20 additions & 0 deletions graphics/openexr/patches/patch-IlmImf_ImfSystemSpecific.h
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
}


0 comments on commit 8491ce8

Please sign in to comment.