blob: a03021f124ea849abc877b6c5f595153c11ba546 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-openjpeg_libopenjpeg_opj_malloc_h,v 1.2 2014/04/26 13:51:40 wiz 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
--- openjpeg/libopenjpeg/opj_malloc.h.orig 2012-08-08 17:01:36.000000000 +0900
+++ openjpeg/libopenjpeg/opj_malloc.h 2012-10-08 09:17:03.000000000 +0900
@@ -84,7 +84,7 @@
#if defined(__sun)
#define HAVE_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__)
#define HAVE_MEMALIGN
#include <malloc.h>
#endif
|