mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Fix #9642 - fdopen(3) requires _POSIX_C_SOURCE
Without this, fdopen() returns some garbage FILE* which causes a crash when used.
This commit is contained in:
parent
15dc06b12a
commit
bda7041643
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from waflib.extras import autowaf as autowaf
|
from waflib.extras import autowaf as autowaf
|
||||||
import sys
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
# Version of this package (even if built as a child)
|
# Version of this package (even if built as a child)
|
||||||
MAJOR = '2'
|
MAJOR = '2'
|
||||||
|
|
@ -63,3 +64,6 @@ def build(bld):
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
obj.uselib += ' OSX'
|
obj.uselib += ' OSX'
|
||||||
obj.ldflags = ' -lintl'
|
obj.ldflags = ' -lintl'
|
||||||
|
|
||||||
|
if re.search ("bsd", sys.platform) != None:
|
||||||
|
obj.defines.append('_POSIX_C_SOURCE=200809')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue