From: LLVM Packaging Team Date: Sun, 16 Dec 2018 12:07:54 +0000 (+0000) Subject: D54338-hurd-libcxx-threads-build X-Git-Tag: archive/raspbian/1%7.0.1-1+rpi1^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=330a3201eab9ec987e0dc5705dd59fcb7ce608e2;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: 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__)