pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/47867: graphics/openexr does not compile on Solaris 10



The following reply was made to PR pkg/47867; it has been noted by GNATS.

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen%uni-bielefeld.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/47867: graphics/openexr does not compile on Solaris 10
Date: Wed, 05 Jun 2013 13:57:58 +0200

 This patch, stolen from
 
 
https://lists.macosforge.org/pipermail/libdispatch-dev/2009-November/000172.html
 
 seems to fix the problem. The openexr's self-test ran successfully:
 
 
 --- IlmImf/ImfSystemSpecific.h.orig     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)
   {
 +#if !defined(__sun__)
       void* ptr = 0;
       posix_memalign(&ptr, alignment, size);
       return ptr;
 +#else
 +    return memalign(alignment, size);
 +#endif
   }
 
 
 
 -- 
   Jörn Clausen                             
joern.clausen%uni-bielefeld.de@localhost
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld
 


Home | Main Index | Thread Index | Old Index