summaryrefslogtreecommitdiff
path: root/libs/fst
diff options
context:
space:
mode:
authorMichael Beer <beerml@sigma6audio.de>2016-09-05 20:14:29 +0200
committerRobin Gareus <robin@gareus.org>2016-10-04 22:59:16 +0200
commit8d8ca6a8fa260f75c70a5216698130004ae2df10 (patch)
treea9e613150ea80a664afa8109b559fb21f1e3a35b /libs/fst
parentb86a4a585d8e9c679af9ef5c61f934bd2935720c (diff)
Make some functions which are needed for native VST support like snprintf() visible in FreeBSD.
Diffstat (limited to 'libs/fst')
-rw-r--r--libs/fst/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/fst/wscript b/libs/fst/wscript
index 9fe165ca9e..a987235ec0 100644
--- a/libs/fst/wscript
+++ b/libs/fst/wscript
@@ -88,4 +88,8 @@ def build(bld):
'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"',
'LIBARDOUR="' + bld.env['lwrcase_dirname'] + '"',
]
+ if re.search ("freebsd", sys.platform) != None:
+ obj.defines.append('_POSIX_C_SOURCE=200809')
+ obj.defines.append('_XOPEN_SOURCE=700')
+
obj.install_path = os.path.join(bld.env['LIBDIR'])