Boost logo

Boost :

From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2005-06-21 08:34:21


Markus Schöpflin wrote:
> Toon Knapen wrote:
>
>
>>The problem seems to be that the header unistd.h is included. Apparantly
>>unistd.h always defines the above tokens, even if the '-mt' flag is not
>>passed on to the compiler.
>
>
> What does sysconf(_SC_THREAD_SAFE_FUNCTIONS) return?

It returns '1' wethere '-mt' is used or not.

But this is a runtime-if. We need a compile-time if to avoid calling
readdir_r when '-mt' is not used on the command-line.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk