Commit 377c1b10 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

contrib: openjpeg: freebsd has posix_memalign

(cherry picked from commit 4105ebb57dda9350ef0dcb23089146c9af79857c)
(cherry picked from commit a6d52f6fa7a1f62d29fac153f486156134d9ff86)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2d285814
*** openjpeg/libopenjpeg/opj_malloc.h.orig 2012-01-27 16:25:43.875875000 -0500
--- openjpeg/libopenjpeg/opj_malloc.h 2012-01-27 16:25:43.875875000 -0500
***************
*** 83,88 ****
--- 83,90 ----
#else /* Not _WIN32 */
#if defined(__sun)
#define HAVE_MEMALIGN
+ #elif defined(__FreeBSD__)
+ #define HAVE_POSIX_MEMALIGN
/* Linux x86_64 and OSX always align allocations to 16 bytes */
#elif !defined(__amd64__) && !defined(__APPLE__)
#define HAVE_MEMALIGN
......@@ -11,6 +11,7 @@ $(TARBALLS)/openjpeg_v$(OPENJPEG_VERSION).tgz:
openjpeg: openjpeg_v$(OPENJPEG_VERSION).tgz .sum-openjpeg
$(UNPACK)
$(APPLY) $(SRC)/openjpeg/pkg-config.patch
$(APPLY) $(SRC)/openjpeg/freebsd.patch
$(UPDATE_AUTOCONFIG)
$(MOVE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment