Use consistent defines for header availability

This commit is contained in:
Robin Gareus 2025-11-09 20:22:33 +01:00
parent 83d44860e0
commit 1ee5a68d76
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
6 changed files with 12 additions and 12 deletions

View file

@ -104,8 +104,8 @@ def configure(conf):
autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.32.0', mandatory=True)
autowaf.check_pkg(conf, 'giomm-2.4', uselib_store='GIOMM', atleast_version='2.2', mandatory=True)
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.check(header_name='execinfo.h', define_name='HAVE_EXECINFO_H',mandatory=False)
conf.check(header_name='unistd.h', define_name='HAVE_UNISTD_H',mandatory=False)
conf.env.append_value('CFLAGS', "-D_POSIX_C_SOURCE=200809L")
if not Options.options.ppc:
conf.check_cc(