From 3718a85c293dff77248ab1613e9cedc3c9c6e1c7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 6 Jun 2007 01:16:05 +0000 Subject: merge essej's fix for OS X git-svn-id: svn://localhost/ardour2/trunk@1956 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/fpu.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/pbd/fpu.cc') 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 { -- cgit v1.2.3