How to detect NPTL at compile time

[email protected] (Wan-Teh Chang)
Newsgroups gmane.comp.lib.phil
Message-ID <[email protected]>
Red Hat Linux 9 ships with the NPTL.  Our code
contains workarounds for LinuxThreads, and I
want to disable the workarounds if we are compiling
against NPTL.  How do I detect whether the pthread
library is LinuxThreads or NPTL at compile time?
Can I use the glibc version number to determine
that (i.e., NPTL if glibc 2.3 or higher)?

Wan-Teh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.