Files
pkgsrc-ng/print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h
2016-01-21 23:40:00 +01:00

16 lines
717 B
Plaintext

$NetBSD: patch-openjpeg_libopenjpeg_opj_malloc_h,v 1.3 2014/10/01 09:04:32 adam Exp $
Work around undefined 'memalign' issue.
--- openjpeg/src/lib/openjp2/opj_malloc.h.orig 2014-03-26 12:53:47.000000000 +0000
+++ openjpeg/src/lib/openjp2/opj_malloc.h
@@ -101,7 +101,7 @@ Allocate memory aligned to a 16 byte bou
#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(__NetBSD__) && !defined(__DragonFly__) && !defined(__OpenBSD__)
#define HAVE_MEMALIGN
#include <malloc.h>
#endif