Add support for NetBSD by generalizing BSD OS tests.

This commit is contained in:
nia
2020-02-12 04:03:08 +00:00
committed by Paul Davis
parent b490100c1b
commit 9be75befbe
3 changed files with 4 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ 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:
if re.search ("bsd", sys.platform) != None:
obj.defines.append('_POSIX_C_SOURCE=200809')
obj.defines.append('_XOPEN_SOURCE=700')