diff options
Diffstat (limited to 'print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h')
-rw-r--r-- | print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h b/print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h index 8f20b6f3cac..c8edf267073 100644 --- a/print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h +++ b/print/ghostscript-agpl/patches/patch-openjpeg_libopenjpeg_opj_malloc_h @@ -1,19 +1,15 @@ -$NetBSD: patch-openjpeg_libopenjpeg_opj_malloc_h,v 1.1 2013/03/16 22:25:21 dholland Exp $ +$NetBSD: patch-openjpeg_libopenjpeg_opj_malloc_h,v 1.2 2014/04/04 08:48:43 adam Exp $ -To avoid following problem: -| gcc .. (omitted).. g -o ./sobin/gsc ./psi/dxmainc.c \ -| -L./sobin -Wl,-R/usr/pkg/lib -lgs -| ./sobin/libgs.so: undefined reference to `memalign' -| gmake[2]: *** [sobin/gsc] Error 1 +Work around undefined 'memalign' issue. ---- openjpeg/libopenjpeg/opj_malloc.h.orig 2013-02-14 07:58:13.000000000 +0000 +--- openjpeg/libopenjpeg/opj_malloc.h.orig 2014-03-26 12:53:47.000000000 +0000 +++ openjpeg/libopenjpeg/opj_malloc.h -@@ -84,7 +84,7 @@ Allocate memory aligned to a 16 byte bou - #if defined(__sun) - #define HAVE_MEMALIGN +@@ -88,7 +88,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) && !defined(__FreeBSD__) -+ #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX) && !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__OpenBSD__) +- #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 |