Make some functions which are needed for native VST support like snprintf() visible...
authorMichael Beer <beerml@sigma6audio.de>
Mon, 5 Sep 2016 18:14:29 +0000 (20:14 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 4 Oct 2016 20:59:16 +0000 (22:59 +0200)
libs/fst/wscript

index 9fe165ca9ebbe08caa0568c3734ae629c4c28515..a987235ec00a07a8f048269abfac35cdb214860d 100644 (file)
@@ -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'])