diff options
author | David Robillard <d@drobilla.net> | 2011-12-11 21:37:05 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-11 21:37:05 +0000 |
commit | e08decb5992d6511e6896939a4cd9ad157831b78 (patch) | |
tree | 5c2cfb7089e7dca124840d703a71e3bff92f2ab1 /wscript | |
parent | 6e4a3a9ea93155e74da4b00fd7cf1b88b2d08f5f (diff) | |
download | serd-e08decb5992d6511e6896939a4cd9ad157831b78.tar.gz serd-e08decb5992d6511e6896939a4cd9ad157831b78.tar.bz2 serd-e08decb5992d6511e6896939a4cd9ad157831b78.zip |
Use posix_fadvise to advise about sequential file access.
git-svn-id: http://svn.drobilla.net/serd/trunk@243 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -66,6 +66,20 @@ def configure(conf): cflags='-D_POSIX_C_SOURCE=201112L', mandatory=False) + # Check for posix_fadvise + conf.check(function_name='posix_fadvise', + header_name='fcntl.h', + define_name='HAVE_POSIX_FADVISE', + cflags='-D_POSIX_C_SOURCE=201112L', + mandatory=False) + + # Check for fileno + conf.check(function_name='fileno', + header_name='stdio.h', + define_name='HAVE_FILENO', + cflags='-D_POSIX_C_SOURCE=201112L', + mandatory=False) + autowaf.define(conf, 'SERD_VERSION', SERD_VERSION) conf.write_config_header('serd-config.h', remove=False) |