summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-08 15:49:45 +0000
committerDavid Robillard <d@drobilla.net>2012-01-08 15:49:45 +0000
commitd7ea96c20f33febd871adea36e6ab5d77614d3db (patch)
tree7a54884fbbb11bacd070d202e22fd316acde7e32 /wscript
parentabd4d49c65afd967c813822a34b80b5a95bdebc3 (diff)
downloadlilv-d7ea96c20f33febd871adea36e6ab5d77614d3db.tar.gz
lilv-d7ea96c20f33febd871adea36e6ab5d77614d3db.tar.bz2
lilv-d7ea96c20f33febd871adea36e6ab5d77614d3db.zip
Fix compilation on Mac OS X.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3923 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/wscript b/wscript
index e712038..485afa8 100644
--- a/wscript
+++ b/wscript
@@ -80,20 +80,25 @@ def configure(conf):
autowaf.check_pkg(conf, 'lv2-lv2plug.in-ns-ext-state',
uselib_store='LV2_STATE', mandatory=False)
+ defines = ['_POSIX_C_SOURCE', '_BSD_SOURCE']
+ if Options.platform == 'darwin':
+ defines += ['_DARWIN_C_SOURCE']
+
conf.check_cc(function_name='wordexp',
header_name='wordexp.h',
- defines='_POSIX_SOURCE',
+ defines=defines,
define_name='HAVE_WORDEXP',
mandatory=False)
conf.check_cc(function_name='flock',
header_name='sys/file.h',
+ defines=defines,
define_name='HAVE_FLOCK',
mandatory=False)
conf.check_cc(function_name='fileno',
header_name='stdio.h',
- defines='_POSIX_SOURCE',
+ defines=defines,
define_name='HAVE_FILENO',
mandatory=False)