diff --git a/subprojects/gstreamer/meson.build b/subprojects/gstreamer/meson.build index 765c0b85d5..0641f7678b 100644 --- a/subprojects/gstreamer/meson.build +++ b/subprojects/gstreamer/meson.build @@ -279,7 +279,8 @@ if cc.has_function('localtime_r', prefix : '#include') cdata.set('HAVE_DECL_LOCALTIME_R', 1) endif -if cc.links('''#include +if cc.links('''#define _GNU_SOURCE + #include int main() { pthread_setname_np("example"); return 0; }''', name : 'pthread_setname_np(const char*)')