[Solaris] Only define _REENTRANT if -pthread
authorRainer Orth <ro@gcc.gnu.org>
Tue, 15 May 2018 11:36:00 +0000 (11:36 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 15 May 2018 11:36:00 +0000 (11:36 +0000)
commit877d15b396494fae90a7808939aab7fd5ceebfb1
tree401300553ebfb60ae8c945f679fb1087a456ee04
parent8f0ab258bd9701c755946890331ccada29b781b7
[Solaris] Only define _REENTRANT if -pthread

When looking at lib/Basic/Targets/OSTargets.h, I noticed that _REENTRANT is defined
unconditionally on Solaris, unlike all other targets and what either Studio cc (only define
it with -mt) or gcc (only define it with -pthread) do.

This patch follows that lead.

Differential Revision: https://reviews.llvm.org/D41241

llvm-svn: 332343
clang/lib/Basic/Targets/OSTargets.h