From: LLVM Packaging Team Date: Tue, 9 Jul 2019 19:04:39 +0000 (+0100) Subject: D54338-hurd-libcxx-threads-build X-Git-Tag: archive/raspbian/1%7.0.1-9+rpi1~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6cf5cdfec7f10bf6ade3689cd45addf76d158af3;p=llvm-toolchain-7.git 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 --- 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__)