summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Chappell <jesse@essej.net>2007-06-05 00:05:13 +0000
committerJesse Chappell <jesse@essej.net>2007-06-05 00:05:13 +0000
commit4431b678239182a85310d4aba4b4f66c6a7cd06b (patch)
tree450496f33a3eb7fe125c449aa9584a80b9ce6b6d
parentdcc577534d198a20ace3434a2fc2052adb8af7fe (diff)
fixed missing posix_memalign use with ifdefs
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@1954 d708f5d6-7413-0410-9779-e7cbd77b26cf
-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 {