diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-06-06 01:16:05 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-06-06 01:16:05 +0000 |
commit | 3718a85c293dff77248ab1613e9cedc3c9c6e1c7 (patch) | |
tree | 74cfd465b9855fe0827bc8825f61c4dfe6d9daf6 /libs/pbd/fpu.cc | |
parent | 7852cc219cddcc86f747fed6616195f5a7642041 (diff) |
merge essej's fix for OS X
git-svn-id: svn://localhost/ardour2/trunk@1956 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/fpu.cc')
-rw-r--r-- | libs/pbd/fpu.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/pbd/fpu.cc b/libs/pbd/fpu.cc index ae69b62e8d..f6850a57dc 100644 --- a/libs/pbd/fpu.cc +++ b/libs/pbd/fpu.cc @@ -59,7 +59,12 @@ FPU::FPU () char* fxbuf = 0; - if (posix_memalign ((void**)&fxbuf, 16, 512)) { +#ifdef NO_POSIX_MEMALIGN + if ((fxbuf = (char *) malloc(512)) == 0) +#else + if (posix_memalign ((void**)&fxbuf, 16, 512)) +#endif + { error << _("cannot allocate 16 byte aligned buffer for h/w feature detection") << endmsg; } else { |