Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-11-01 11:23:06


Author: bemandawes
Date: 2007-11-01 11:23:06 EDT (Thu, 01 Nov 2007)
New Revision: 40640
URL: http://svn.boost.org/trac/boost/changeset/40640

Log:
Enable the XPG-compliant version of readdir_r() on AIX. Merged from 1.34.1.

Text files modified:
   trunk/libs/filesystem/src/operations.cpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2007-11-01 11:23:06 EDT (Thu, 01 Nov 2007)
@@ -16,6 +16,11 @@
 
 #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,


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