diff -ru boost_1_34_0/libs/filesystem/src/operations.cpp boost_1_34_0_ibm/libs/filesystem/src/operations.cpp --- boost_1_34_0/libs/filesystem/src/operations.cpp 2006-07-29 16:45:11.000000000 -0400 +++ boost_1_34_0_ibm/libs/filesystem/src/operations.cpp 2007-03-21 14:15:00.000000000 -0400 @@ -17,6 +17,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,