Skip to content

meson: fix pthread_setname_np detection on BSDs

Jan Beich requested to merge jbeich/xserver:meson-freebsd11-setname into master

Exposed by faff5bbd. From error log:

../os/inputthread.c:326:5: error: implicit declaration of function 'pthread_setname_np' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    pthread_setname_np (pthread_self(), "InputThread");
    ^
../os/inputthread.c:447:5: error: implicit declaration of function 'pthread_setname_np' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    pthread_setname_np (pthread_self(), "MainThread");
    ^
2 errors generated.
Edited by Jan Beich

Merge request reports

Loading