13
0

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:
Robin Gareus 2024-04-04 17:02:20 +02:00
parent 15dc06b12a
commit bda7041643
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python
from waflib.extras import autowaf as autowaf
import sys
import re
# Version of this package (even if built as a child)
MAJOR = '2'
@ -63,3 +64,6 @@ def build(bld):
if sys.platform == 'darwin':
obj.uselib += ' OSX'
obj.ldflags = ' -lintl'
if re.search ("bsd", sys.platform) != None:
obj.defines.append('_POSIX_C_SOURCE=200809')