From 4d59eedd681a63da5024fea8b6c0fb2ee4e28bb2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 2 Oct 2009 14:46:10 +0000 Subject: [PATCH] Fix posix_memalign check. git-svn-id: svn://localhost/ardour2/branches/3.0@5718 d708f5d6-7413-0410-9779-e7cbd77b26cf --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index 2e5d306675..8c95785201 100644 --- a/wscript +++ b/wscript @@ -210,7 +210,7 @@ def set_compiler_flags (conf,opt): debug_flags.append ("-DUSE_X86_64_ASM") if build_host_supports_sse != 1: print "\nWarning: you are building Ardour with SSE support even though your system does not support these instructions. (This may not be an error, especially if you are a package maintainer)" - if conf.check_cc(function_name='posix_memalign', header_name='stdlib.h') == False: + if conf.check_cc(function_name='posix_memalign', header_name='stdlib.h', ccflags='-D_XOPEN_SOURCE=600') == False: optimization_flags.append("-DNO_POSIX_MEMALIGN") # end optimization section