openbsd-ports/graphics/openjpeg/patches/patch-libopenjpeg_opj_malloc_h
sthen 96db5b20e4 Update to OpenJPEG 1.5.1, note that there are still some known security
bugs (as pointed out by jca), but this is a better base from which to update.
Rolls in previous security fixes we had as patches.
Merge PFRAG.shared while there.
2013-12-10 12:26:46 +00:00

17 lines
723 B
Plaintext

$OpenBSD: patch-libopenjpeg_opj_malloc_h,v 1.4 2013/12/10 12:26:47 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 Dec 6 14:56:48 2013
+++ libopenjpeg/opj_malloc.h Fri Dec 6 14:57:45 2013
@@ -86,7 +86,7 @@ Allocate memory aligned to a 16 byte boundry
#elif defined(__FreeBSD__)
#define HAVE_POSIX_MEMALIGN
/* Linux x86_64 and OSX always align allocations to 16 bytes */
- #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)
+ #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX) && !defined(__OpenBSD__)
#define HAVE_MEMALIGN
#include <malloc.h>
#endif