Ticket #583: operations.cpp.patch

File operations.cpp.patch, 687 bytes (added by ccambly@…, 15 years ago)

readdir_r is not thread safe by default on AIX this is why the wide_test fails.

  • libs/filesystem/src/operations.cpp

    old new  
    12801280          && defined(_POSIX_THREAD_SAFE_FUNCTIONS) \
    12811281          && defined(_SC_THREAD_SAFE_FUNCTIONS) \
    12821282          && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0) \
    1283           && (!defined(__hpux) || (defined(__hpux) && defined(_REENTRANT)))
     1283          && (!defined(__hpux) || (defined(__hpux) && defined(_REENTRANT))) \
     1284          && (defined(_AIX) && defined(__THREAD_SAFE))
    12841285          if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 )
    12851286            { return ::readdir_r( dirp, entry, result ); }
    12861287    #     endif