Ticket #3910: operations.cpp.patch

File operations.cpp.patch, 1.0 KB (added by ccambly@…, 13 years ago)

Patch to operations.cpp for readir_r() for vacpp on AIX

  • libs/filesystem/src/operations.

    old new  
    1616
    1717#define _POSIX_PTHREAD_SEMANTICS  // Sun readdir_r() needs this
    1818
    19 // enable the XPG-compliant version of readdir_r() on AIX
    20 #if defined(_AIX)
    21 # define _LINUX_SOURCE_COMPAT
    22 #endif
    23 
    2419#if !(defined(__HP_aCC) && defined(_ILP32) && \
    2520      !defined(_STATVFS_ACPP_PROBLEMS_FIXED))
    2621#define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect,
     
    13141309          && defined(_POSIX_THREAD_SAFE_FUNCTIONS) \
    13151310          && defined(_SC_THREAD_SAFE_FUNCTIONS) \
    13161311          && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0) \
    1317           && (!defined(__hpux) || (defined(__hpux) && defined(_REENTRANT)))
     1312          && (!defined(__hpux) || (defined(__hpux) && defined(_REENTRANT))) \
     1313          && (defined(_AIX) && defined(__THREAD_SAFE))
    13181314          if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 )
    13191315            { return ::readdir_r( dirp, entry, result ); }
    13201316    #     endif