build: Define _QNX_SOURCE on QNX

This is in order to activate all library features.
This commit is contained in:
Ole André Vadla Ravnås 2021-01-19 23:17:11 +01:00
parent 57768b4704
commit 5de22998d5

View File

@ -98,6 +98,10 @@ build_tests = get_option('tests') and (not meson.is_cross_build() or (meson.is_c
add_project_arguments('-D_GNU_SOURCE', language: 'c')
if host_system == 'qnx'
add_project_arguments('-D_QNX_SOURCE', language: 'c')
endif
# Disable strict aliasing;
# see https://bugzilla.gnome.org/show_bug.cgi?id=791622
if cc.has_argument('-fno-strict-aliasing')