blender/extern/libopenjpeg/patches/fbsd.patch
Campbell Barton fd15ba060b [#21753] allowing to compile on FreeBSD 8.0
patch on libopenjpeg
2010-04-26 21:28:50 +00:00

14 lines
510 B
Diff

Index: extern/libopenjpeg/opj_malloc.h
===================================================================
--- extern/libopenjpeg/opj_malloc.h (revision 27736)
+++ extern/libopenjpeg/opj_malloc.h (working copy)
@@ -76,7 +76,7 @@
#if defined(__sun)
#define HAVE_MEMALIGN
#elif defined(__GNUC__)
- #ifndef __APPLE__
+ #if !defined(__APPLE__) && !defined(__FreeBSD__)
#define HAVE_MEMALIGN
#include <malloc.h>
#endif