diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2024-04-15 02:56:07 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2024-04-15 02:56:07 +0200 |
commit | 28a2ef7c5f28dea8ce9b5d2f14b366ada0353e0c (patch) | |
tree | dd79f52f56c53af93fd97eecd7c06589c02796f3 /tdm/backend/dm.c | |
parent | d5083f71dbc8dd315f1a919e475ef9a47eb60fb2 (diff) | |
download | tdebase-28a2ef7c5f28dea8ce9b5d2f14b366ada0353e0c.tar.gz tdebase-28a2ef7c5f28dea8ce9b5d2f14b366ada0353e0c.zip |
tdm: Allow to detect pthread_setname_np. Add linking pthread.
This relates to issue #473.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdm/backend/dm.c')
-rw-r--r-- | tdm/backend/dm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tdm/backend/dm.c b/tdm/backend/dm.c index 627d2c23d..9168b88b5 100644 --- a/tdm/backend/dm.c +++ b/tdm/backend/dm.c @@ -54,6 +54,8 @@ from the copyright holder. #endif #ifdef HAVE_PTHREAD_SETNAME_NP +#define _GNU_SOURCE +#define __BSD_VISIBLE 1 #include <pthread.h> #endif /* pthread_setname_np() */ |