Use proper _POSIX_C_SOURCE constant
This commit is contained in:
parent
bda7041643
commit
3b0e421de4
@ -38,7 +38,7 @@ def build(bld):
|
|||||||
obj.linkflags = ['-mwindows']
|
obj.linkflags = ['-mwindows']
|
||||||
|
|
||||||
if re.search ("bsd", sys.platform) != None:
|
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.defines.append('_XOPEN_SOURCE=700')
|
||||||
|
|
||||||
obj.install_path = os.path.join(bld.env['LIBDIR'])
|
obj.install_path = os.path.join(bld.env['LIBDIR'])
|
||||||
|
@ -66,4 +66,4 @@ def build(bld):
|
|||||||
obj.ldflags = ' -lintl'
|
obj.ldflags = ' -lintl'
|
||||||
|
|
||||||
if re.search ("bsd", sys.platform) != None:
|
if re.search ("bsd", sys.platform) != None:
|
||||||
obj.defines.append('_POSIX_C_SOURCE=200809')
|
obj.defines.append('_POSIX_C_SOURCE=200809L')
|
||||||
|
Loading…
Reference in New Issue
Block a user