13
0

moving POSIX_VISIBLE to the waf script part

This commit is contained in:
David Carlier 2016-11-18 12:34:11 +00:00 committed by Paul Davis
parent 282b7c2443
commit be7c6225c8
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -88,7 +88,7 @@ def build(bld):
'PACKAGE="' + I18N_PACKAGE + str(bld.env['MAJOR']) + '"',
'LIBARDOUR="' + bld.env['lwrcase_dirname'] + '"',
]
if re.search ("freebsd", sys.platform) != None:
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')