I got a "undefined reference to `memalign'" when linking to libfreeimage.so on
Netbsd 6.1.1 i386. As hotfix I added a check in
'/Source/LibOpenJPE/opj_malloc.h':
#elif !defined(amd64) && !defined(APPLE) && !defined(_AIX) && !defined(NetBSD)
#define HAVE_MEMALIGN
#include <malloc.h></malloc.h>
Not sure this is the right thing to do..
Anonymous