Ticket #2175: error_code.cpp.patch

File error_code.cpp.patch, 1.2 KB (added by glyn.matthews@…, 14 years ago)

Patch for libs/system/src/error_code.cpp

  • error_code.cpp

     
    7979  # if defined(BOOST_WINDOWS_API) || defined(__hpux) || defined(__sun)\
    8080     || (defined(__linux) && (!defined(__USE_XOPEN2K) || defined(BOOST_SYSTEM_USE_STRERROR)))\
    8181     || (defined(__osf__) && !defined(_REENTRANT))\
    82      || (defined(__vms))
     82     || (defined(__vms))\
     83     || (defined(__QNXNTO__))
    8384      const char * c_str = std::strerror( ev );
    8485      return std::string( c_str ? c_str : "Unknown error" );
    8586  # else
     
    157158    case EALREADY: return make_error_condition( connection_already_in_progress );
    158159    case EBADF: return make_error_condition( bad_file_descriptor );
    159160    case EBADMSG: return make_error_condition( bad_message );
     161  # if EALREADY != EBUSY // QNX treats EALREADY and EBUSY as the same value
    160162    case EBUSY: return make_error_condition( device_or_resource_busy );
     163  # endif // EALREADY != EBUSY
    161164    case ECANCELED: return make_error_condition( operation_canceled );
    162165    case ECHILD: return make_error_condition( no_child_process );
    163166    case ECONNABORTED: return make_error_condition( connection_aborted );