Ticket #3910: operations.cpp.patch
File operations.cpp.patch, 1.0 KB (added by , 13 years ago) |
---|
-
libs/filesystem/src/operations.
old new 16 16 17 17 #define _POSIX_PTHREAD_SEMANTICS // Sun readdir_r() needs this 18 18 19 // enable the XPG-compliant version of readdir_r() on AIX20 #if defined(_AIX)21 # define _LINUX_SOURCE_COMPAT22 #endif23 24 19 #if !(defined(__HP_aCC) && defined(_ILP32) && \ 25 20 !defined(_STATVFS_ACPP_PROBLEMS_FIXED)) 26 21 #define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect, … … 1314 1309 && defined(_POSIX_THREAD_SAFE_FUNCTIONS) \ 1315 1310 && defined(_SC_THREAD_SAFE_FUNCTIONS) \ 1316 1311 && (_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)) 1318 1314 if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 ) 1319 1315 { return ::readdir_r( dirp, entry, result ); } 1320 1316 # endif