Work around a Windows crash (for now)
[ardour.git] / libs / fst / wscript
index 9fe165ca9ebbe08caa0568c3734ae629c4c28515..ca90b7207d32c56fa609b8b39dc29d0d74ee6170 100644 (file)
@@ -42,7 +42,7 @@ def set_winegcc(self):
 
 def build(bld):
     VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
-    if not (bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT')):
+    if not (bld.is_defined('WINDOWS_VST_SUPPORT') or bld.is_defined('LXVST_SUPPORT') or bld.is_defined ('MACVST_SUPPORT')):
         return
 
     if bld.is_defined('WINDOWS_VST_SUPPORT') and bld.env['build_target'] != 'mingw':
@@ -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 or re.search ("openbsd", 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'])