Correctly detect localtime_r

This commit is contained in:
Robin Gareus 2025-05-18 19:10:56 +02:00
parent c7cc5a1a61
commit e44a66287a
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 2 additions and 1 deletions

View file

@ -42,7 +42,7 @@ def build(bld):
obj.uselib = [ 'DBUS' ]
obj.install_path = os.path.join(bld.env['LIBDIR'])
obj.defines = [
'_POSIX_SOURCE',
'_DEFAULT_SOURCE',
'_XOPEN_SOURCE=500',
'ARD_PROG_NAME="ardour-request-device"',
'ARD_APPL_NAME="Ardour ALSA Backend"',

View file

@ -105,6 +105,7 @@ def configure(conf):
conf.check(header_name='execinfo.h', define_name='HAVE_EXECINFO',mandatory=False)
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD',mandatory=False)
conf.env.append_value('CFLAGS', "-D_POSIX_C_SOURCE=200809L")
if not Options.options.ppc:
conf.check_cc(
msg="Checking for function 'posix_memalign' in stdlib.h",