8c1e5ba0db
so it doesn't get lost in future. Build failure pointed out by naddy@
19 lines
766 B
Plaintext
19 lines
766 B
Plaintext
$OpenBSD: patch-libopenjpeg_opj_malloc_h,v 1.3 2012/03/30 07:09:26 sthen Exp $
|
|
|
|
Required for !amd64. We could use posix_memalign() instead, but no point
|
|
as our malloc() already aligns to 16 bytes.
|
|
|
|
--- libopenjpeg/opj_malloc.h.orig Fri Mar 30 08:01:51 2012
|
|
+++ libopenjpeg/opj_malloc.h Fri Mar 30 08:02:32 2012
|
|
@@ -83,8 +83,8 @@ Allocate memory aligned to a 16 byte boundry
|
|
#else /* Not _WIN32 */
|
|
#if defined(__sun)
|
|
#define HAVE_MEMALIGN
|
|
- /* Linux x86_64 and OSX always align allocations to 16 bytes */
|
|
- #elif !defined(__amd64__) && !defined(__APPLE__)
|
|
+ /* Linux x86_64, OSX, OpenBSD always align allocations to 16 bytes */
|
|
+ #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(__OpenBSD__)
|
|
#define HAVE_MEMALIGN
|
|
#include <malloc.h>
|
|
#endif
|