[Support] reorder Threading includes to avoid conflict with FreeBSD headers
authorTim Northover <t.p.northover@gmail.com>
Fri, 9 Jul 2021 08:51:57 +0000 (09:51 +0100)
committerTim Northover <t.p.northover@gmail.com>
Fri, 9 Jul 2021 09:39:52 +0000 (10:39 +0100)
commit0c39f82f0b3e9268f7699e62f59f960a1bff89fa
tree1af3ce9b3ca80072939f787c098645f1acb61b3b
parent375694a07bcba3be66864c42a5932be1a22831e2
[Support] reorder Threading includes to avoid conflict with FreeBSD headers

FreeBSD's condvar.h (included by user.h in Threading.inc) uses a "struct
thread" that conflicts with llvm::thread if both are visible when it's
included.

So this moves our #include after the FreeBSD code.
llvm/lib/Support/Threading.cpp
llvm/lib/Support/Unix/Threading.inc
llvm/lib/Support/Windows/Threading.inc