From 5f7fed94b3ff74ede85ab9189221808543c4054b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Dec 2011 19:23:19 +0000 Subject: Align read buffer to page boundary if posix_memalign is available. git-svn-id: http://svn.drobilla.net/serd/trunk@240 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 928c9d6b..225b52b9 100644 --- a/wscript +++ b/wscript @@ -59,6 +59,13 @@ def configure(conf): if Options.options.largefile: conf.env.append_unique('CFLAGS', '-D_FILE_OFFSET_BITS=64') + # Check for posix_memalign + conf.check(function_name='posix_memalign', + header_name='stdlib.h', + define_name='HAVE_POSIX_MEMALIGN', + cflags='-D_POSIX_C_SOURCE=201112L', + mandatory=False) + autowaf.define(conf, 'SERD_VERSION', SERD_VERSION) conf.write_config_header('serd-config.h', remove=False) -- cgit v1.2.1