openbsd-ports/graphics/freeimage/patches/patch-Source_LibOpenJPEG_opj_malloc_h
2016-01-21 18:15:14 +00:00

15 lines
616 B
Plaintext

$OpenBSD: patch-Source_LibOpenJPEG_opj_malloc_h,v 1.2 2016/01/21 18:15:14 jasper Exp $
--- Source/LibOpenJPEG/opj_malloc.h.orig Sat Feb 18 15:33:18 2012
+++ Source/LibOpenJPEG/opj_malloc.h Thu Jan 21 19:13:05 2016
@@ -84,8 +84,8 @@ Allocate memory aligned to a 16 byte boundry
#if defined(__sun)
#define HAVE_MEMALIGN
/* Linux x86_64 and OSX always align allocations to 16 bytes */
- #elif !defined(__amd64__) && !defined(__APPLE__)
- #define HAVE_MEMALIGN
+ #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(__OpenBSD__)
+ #define HAVE_POSIX_MEMALIGN
#include <malloc.h>
#endif
#endif