Ticket #2175: error_code.cpp.patch
File error_code.cpp.patch, 1.2 KB (added by , 14 years ago) |
---|
-
error_code.cpp
79 79 # if defined(BOOST_WINDOWS_API) || defined(__hpux) || defined(__sun)\ 80 80 || (defined(__linux) && (!defined(__USE_XOPEN2K) || defined(BOOST_SYSTEM_USE_STRERROR)))\ 81 81 || (defined(__osf__) && !defined(_REENTRANT))\ 82 || (defined(__vms)) 82 || (defined(__vms))\ 83 || (defined(__QNXNTO__)) 83 84 const char * c_str = std::strerror( ev ); 84 85 return std::string( c_str ? c_str : "Unknown error" ); 85 86 # else … … 157 158 case EALREADY: return make_error_condition( connection_already_in_progress ); 158 159 case EBADF: return make_error_condition( bad_file_descriptor ); 159 160 case EBADMSG: return make_error_condition( bad_message ); 161 # if EALREADY != EBUSY // QNX treats EALREADY and EBUSY as the same value 160 162 case EBUSY: return make_error_condition( device_or_resource_busy ); 163 # endif // EALREADY != EBUSY 161 164 case ECANCELED: return make_error_condition( operation_canceled ); 162 165 case ECHILD: return make_error_condition( no_child_process ); 163 166 case ECONNABORTED: return make_error_condition( connection_aborted );