[1.5] Fix compilation on FreeBSD. Thanks to rafael carre (funman@videolan.org) for patch.

Fixes issue 111
This commit is contained in:
Mathieu Malaterre 2012-05-29 10:19:45 +00:00
parent 8cd13f3a55
commit 6da56bb11a
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ Allocate memory aligned to a 16 byte boundry
#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__) && !defined(_AIX)
#define HAVE_MEMALIGN