
21 Jun
2005
21 Jun
'05
1:34 p.m.
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.