$OpenBSD: patch-third_party_pdfium_third_party_libopenjpeg20_opj_malloc_h,v 1.5 2018/05/04 07:14:58 robert Exp $

Index: third_party/pdfium/third_party/libopenjpeg20/opj_malloc.h
--- third_party/pdfium/third_party/libopenjpeg20/opj_malloc.h.orig
+++ third_party/pdfium/third_party/libopenjpeg20/opj_malloc.h
@@ -98,7 +98,7 @@ Allocate memory aligned to a 16 byte boundary
 #else /* Not _WIN32 */
   #if defined(__sun)
     #define HAVE_MEMALIGN
-  #elif defined(__FreeBSD__)
+  #elif defined(__FreeBSD__) || defined(__OpenBSD__)
     #define HAVE_POSIX_MEMALIGN
   /* Linux x86_64 and OSX always align allocations to 16 bytes */
   #elif !defined(__amd64__) && !defined(__APPLE__) && !defined(_AIX)
