Ticket #1578: operations.cpp.patch

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

Patch for operations.cpp

  • operations.cpp

    old new  
    12171217          && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0) \
    12181218          && (!defined(__HP_aCC) || (defined(__HP_aCC) && defined(_REENTRANT)))
    12191219          if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 )
    1220             { return ::readdir_r( dirp, entry, result ); }
     1220            { if(::readdir_r( dirp, entry, result )==NULL) return errno; else return 0; }
    12211221    #     endif
    12221222
    12231223          struct dirent * p;