Commit 4f524251 authored by Samuel Thibault's avatar Samuel Thibault Committed by Marge Bot

util: Do not fail to build on unknown pthread_setname_np

This is only used for debugging, so better making porting on various systems
less hard.
Reviewed-by: Matt Turner's avatarMatt Turner <mattst88@gmail.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Signed-off-by: Samuel Thibault's avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Marge Bot <!3229>
Part-of: <!3229>
parent e45dc931
Pipeline #100191 passed with stages
in 17 minutes and 40 seconds
......@@ -84,7 +84,7 @@ static inline void u_thread_setname( const char *name )
#elif DETECT_OS_HAIKU
rename_thread(find_thread(NULL), name);
#else
#error Not sure how to call pthread_setname_np
#warning Not sure how to call pthread_setname_np
#endif
#endif
(void)name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment