13
0

Use proper _POSIX_C_SOURCE constant

This commit is contained in:
Robin Gareus 2024-04-04 17:05:18 +02:00
parent bda7041643
commit 3b0e421de4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ def build(bld):
obj.linkflags = ['-mwindows']
if re.search ("bsd", sys.platform) != None:
obj.defines.append('_POSIX_C_SOURCE=200809')
obj.defines.append('_POSIX_C_SOURCE=200809L')
obj.defines.append('_XOPEN_SOURCE=700')
obj.install_path = os.path.join(bld.env['LIBDIR'])

View File

@ -66,4 +66,4 @@ def build(bld):
obj.ldflags = ' -lintl'
if re.search ("bsd", sys.platform) != None:
obj.defines.append('_POSIX_C_SOURCE=200809')
obj.defines.append('_POSIX_C_SOURCE=200809L')