[filesystem] readdir_r on SunPRO

Just noticed this compile error for the latest CVS code using the SunPRO compiler: "/home/nbde52d/src/boost-regression/boost/libs/filesystem/build/../src/operations_posix_windows.cpp", line 121: Error: readdir_r is not a member of file level. Here's the compile command: CC -c -g -xtarget=generic +d -features=rtti -features=except -features=tmplife -instances=static -I"/home/nbde52d/src/boost-regression/results/bin/boost/libs/filesystem/build" -I"/home/nbde52d/src/boost-regression/boost" -I"/home/nbde52d/src/boost-regression/boost" -o "/home/nbde52d/src/boost-regression/results/bin/boost/libs/filesystem/build/libboost_filesystem.a/sunpro-5_3/debug/operations_posix_windows.o" "/home/nbde52d/src/boost-regression/boost/libs/filesystem/build/../src/operations_posix_windows.cpp" The -mt flag is not present, so including <dirent.h> does not pull in the readdir_r prototype. I think the use of ::readdir_r needs to be further protected with a check for whether MT code is being compiled (BOOST_HAS_THREADS?) -- Caleb Epstein caleb dot epstein at gmail dot com
participants (1)
-
Caleb Epstein