[filesystem] patch for operations.cpp for HP-UX/gcc

The fix for gcc on HP-UX in revision 39130 of filesystem/src/operations.cpp disappeared in revision 39130 of the module. As a result, filesystem library stopped to compile on this platform again. Attached the patch. Ok to commit? Thanks, Boris Index: src/operations.cpp =================================================================== --- src/operations.cpp (revision 39233) +++ src/operations.cpp (working copy) @@ -1279,7 +1279,7 @@ && defined(_POSIX_THREAD_SAFE_FUNCTIONS) \ && defined(_SC_THREAD_SAFE_FUNCTIONS) \ && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0) \ - && (!defined(__HP_aCC) || (defined(__HP_aCC) && defined(_REENTRANT))) + && (!defined(__hpux) || (defined(__hpux) && defined(_REENTRANT))) if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 ) { return ::readdir_r( dirp, entry, result ); } # endif

Boris Gubenko wrote:
The fix for gcc on HP-UX in revision 39130 of filesystem/src/operations.cpp disappeared in revision 39130 of the module. As a result, filesystem library stopped to compile on this platform again.
Attached the patch. Ok to commit?
Yes. Thanks, --Beman
Thanks, Boris
Index: src/operations.cpp =================================================================== --- src/operations.cpp (revision 39233) +++ src/operations.cpp (working copy) @@ -1279,7 +1279,7 @@ && defined(_POSIX_THREAD_SAFE_FUNCTIONS) \ && defined(_SC_THREAD_SAFE_FUNCTIONS) \ && (_POSIX_THREAD_SAFE_FUNCTIONS+0 >= 0) \ - && (!defined(__HP_aCC) || (defined(__HP_aCC) && defined(_REENTRANT))) + && (!defined(__hpux) || (defined(__hpux) && defined(_REENTRANT))) if ( ::sysconf( _SC_THREAD_SAFE_FUNCTIONS ) >= 0 ) { return ::readdir_r( dirp, entry, result ); } # endif
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Beman Dawes
-
Boris Gubenko