summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {