meson: add missing _GNU_SOURCE in check

This commit is contained in:
Kacper Michajłow 2023-11-24 07:21:29 +01:00 committed by sfan5
parent ed107c4116
commit d0e609297f
1 changed files with 1 additions and 0 deletions

View File

@ -367,6 +367,7 @@ if not features['win32-threads']
features += {'pthread-condattr-setclock': features += {'pthread-condattr-setclock':
cc.has_header_symbol('pthread.h', cc.has_header_symbol('pthread.h',
'pthread_condattr_setclock', 'pthread_condattr_setclock',
args: '-D_GNU_SOURCE',
dependencies: pthreads)} dependencies: pthreads)}
dependencies += pthreads dependencies += pthreads
endif endif