diff options
author | Timo Myyrä <timo.myyra@bittivirhe.fi> | 2020-06-28 10:27:21 +0200 |
---|---|---|
committer | Mattias Engdegård <mattiase@acm.org> | 2020-06-28 10:27:21 +0200 |
commit | e4028d15153a29966425d93be6374fae770d14a8 (patch) | |
tree | 1cfd0e417a7999dfe35091fcace7088a90aedca7 /configure.ac | |
parent | 5ce5cf643840cd6efd25d987bc5b6f12478c50a6 (diff) | |
download | emacs-e4028d15153a29966425d93be6374fae770d14a8.tar.gz |
Add thread-naming support for OpenBSD
OpenBSD has pthread_set_name_np; FreeBSD appears to have both
this call and pthread_setname_np (the latter call is used in preference).
* configure.ac: Detect pthread_set_name_np.
* sys/systhread.c:
Include <pthread_np.h> and call pthread_set_name_np if available.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b1b8c846e14..9edd2273b19 100644 --- a/configure.ac +++ b/configure.ac @@ -4187,7 +4187,8 @@ pthread_sigmask strsignal setitimer timer_getoverrun \ sendto recvfrom getsockname getifaddrs freeifaddrs \ gai_strerror sync \ getpwent endpwent getgrent endgrent \ -cfmakeraw cfsetspeed __executable_start log2 pthread_setname_np) +cfmakeraw cfsetspeed __executable_start log2 pthread_setname_np \ +pthread_set_name_np) LIBS=$OLD_LIBS if test "$ac_cv_func_pthread_setname_np" = "yes"; then |