summaryrefslogtreecommitdiff
path: root/libs/pbd/malign.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-17 00:54:43 +0000
committerDavid Robillard <d@drobilla.net>2012-05-17 00:54:43 +0000
commit86474713798d6fb40c161ae4b319ffa73472d3c1 (patch)
treee2fb5a26a37a9493c3762f3a41c09a606527365c /libs/pbd/malign.cc
parent8aca90e593aae691fcc6f115e28cb7552ce0fb31 (diff)
Fix posix_memalign checks.
git-svn-id: svn://localhost/ardour2/branches/3.0@12316 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/malign.cc')
-rw-r--r--libs/pbd/malign.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd/malign.cc b/libs/pbd/malign.cc
index b8aa61c997..44361aa70a 100644
--- a/libs/pbd/malign.cc
+++ b/libs/pbd/malign.cc
@@ -18,7 +18,7 @@ static const int CPU_CACHE_ALIGN = 16; /* arguably 32 on most arches, but it mat
int cache_aligned_malloc (void** memptr, size_t size)
{
-#ifdef NO_POSIX_MEMALIGN
+#ifndef HAVE_POSIX_MEMALIGN
if (((*memptr) = malloc (size)) == 0) {
fatal << string_compose (_("Memory allocation error: malloc (%1 * %2) failed (%3)"),
CPU_CACHE_ALIGN, size, strerror (errno)) << endmsg;