From 6cf5cdfec7f10bf6ade3689cd45addf76d158af3 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Tue, 9 Jul 2019 20:04:39 +0100 Subject: [PATCH] D54338-hurd-libcxx-threads-build r346763 | ldionne | 2018-11-13 18:00:04 +0100 (Tue, 13 Nov 2018) | 5 lines [libcxx] GNU/Hurd uses BSD-based interfaces, but does not (and won't) provide Reviewed as https://reviews.llvm.org/D54338. Thanks to sthibaul for the patch. Gbp-Pq: Topic hurd Gbp-Pq: Name D54338-hurd-libcxx-threads-build.diff --- libcxx/src/thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp index 550da8ea7..241cfee23 100644 --- a/libcxx/src/thread.cpp +++ b/libcxx/src/thread.cpp @@ -19,9 +19,9 @@ #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) # include -# if defined(BSD) +# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__) # include -# endif // defined(BSD) +# endif #endif // defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__CloudABI__) || defined(__Fuchsia__) -- 2.30.2