
4 Apr
2005
4 Apr
'05
11:24 a.m.
The code in question is:
# if defined(_POSIX_THREAD_SAFE_FUNCTIONS) \ && defined(_SC_THREAD_SAFE_FUNCTIONS) \ && _POSIX_THREAD_SAFE_FUNCTIONS >= 0 if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 ) { return ::readdir_r( dirp, entry, result ); } # endif
Seems like _POSIX_THREAD_SAFE_FUNCTIONS but doesn't expand to anything.
That's a common problem with the POSIX feature test macros, the workaround is to use : (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0) John.