Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62219 - trunk/libs/filesystem/src
From: bdawes_at_[hidden]
Date: 2010-05-25 19:33:40


Author: bemandawes
Date: 2010-05-25 19:33:39 EDT (Tue, 25 May 2010)
New Revision: 62219
URL: http://svn.boost.org/trac/boost/changeset/62219

Log:
Fix #3910
Text files modified:
   trunk/libs/filesystem/src/operations.cpp | 8 ++------
   1 files changed, 2 insertions(+), 6 deletions(-)

Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2010-05-25 19:33:39 EDT (Tue, 25 May 2010)
@@ -16,11 +16,6 @@
 
 #define _POSIX_PTHREAD_SEMANTICS // Sun readdir_r() needs this
 
-// enable the XPG-compliant version of readdir_r() on AIX
-#if defined(_AIX)
-# define _LINUX_SOURCE_COMPAT
-#endif
-
 #if !(defined(__HP_aCC) && defined(_ILP32) && \
       !defined(_STATVFS_ACPP_PROBLEMS_FIXED))
 #define _FILE_OFFSET_BITS 64 // at worst, these defines may have no effect,
@@ -1315,7 +1310,8 @@
           && defined(_POSIX_THREAD_SAFE_FUNCTIONS) \
           && defined(_SC_THREAD_SAFE_FUNCTIONS) \
           && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0) \
- && (!defined(__hpux) || (defined(__hpux) && defined(_REENTRANT)))
+ && (!defined(__hpux) || defined(_REENTRANT)) \
+ && (!defined(_AIX) || defined(__THREAD_SAFE))
           if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 )
             { return ::readdir_r( dirp, entry, result ); }
     # endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk