1
0
mirror of https://git.FreeBSD.org/src.git synced 2026-06-02 11:24:32 +00:00

Fix up builds on Linux hosts after llvm 21.1.8 merge

This is because contrib/llvm-project/llvm/lib/Support/Unix/Threading.inc
attempts to use pthread_get_name_np(3) and pthread_set_name_np(3), which
are not defined on Linux.

Reported by:	ivy
PR:		292067
MFC after:	1 month

(cherry picked from commit b6d823e390)
This commit is contained in:
Dimitry Andric
2026-04-25 17:20:27 +02:00
parent 0b78483e68
commit ec6797818b
+4
View File
@@ -114,10 +114,14 @@
#define HAVE_PTHREAD_SETNAME_NP 1
/* Define to 1 if you have the `pthread_get_name_np' function. */
#if !defined(__linux__)
#define HAVE_PTHREAD_GET_NAME_NP 1
#endif
/* Define to 1 if you have the `pthread_set_name_np' function. */
#if !defined(__linux__)
#define HAVE_PTHREAD_SET_NAME_NP 1
#endif
/* Define to 1 if you have the <mach/mach.h> header file. */
#if __has_include(<mach/mach.h>)