patch-libopenjpeg_opj_malloc_h 723 B

1234567891011121314151617
  1. $OpenBSD: patch-libopenjpeg_opj_malloc_h,v 1.4 2013/12/10 12:26:47 sthen Exp $
  2. Required for !amd64. We could use posix_memalign() instead, but no point
  3. as our malloc() already aligns to 16 bytes.
  4. --- libopenjpeg/opj_malloc.h.orig Fri Dec 6 14:56:48 2013
  5. +++ libopenjpeg/opj_malloc.h Fri Dec 6 14:57:45 2013
  6. @@ -86,7 +86,7 @@ Allocate memory aligned to a 16 byte boundry
  7. #elif defined(__FreeBSD__)
  8. #define HAVE_POSIX_MEMALIGN
  9. /* Linux x86_64 and OSX always align allocations to 16 bytes */
  10. - #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)
  11. + #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX) && !defined(__OpenBSD__)
  12. #define HAVE_MEMALIGN
  13. #include <malloc.h>
  14. #endif