summaryrefslogtreecommitdiff
path: root/libs/pbd/fpu.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-06-06 01:16:05 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-06-06 01:16:05 +0000
commit3718a85c293dff77248ab1613e9cedc3c9c6e1c7 (patch)
tree74cfd465b9855fe0827bc8825f61c4dfe6d9daf6 /libs/pbd/fpu.cc
parent7852cc219cddcc86f747fed6616195f5a7642041 (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.cc7
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 {