Ticket #3994: boost_system-errors-brcm.patch

File boost_system-errors-brcm.patch, 1.3 KB (added by mflorian@…, 13 years ago)

patch to check for the duplicate values

  • boost_1_42_0/libs/system/src/error_code.cpp

     
    221221  # if ENOTEMPTY != EEXIST // AIX treats ENOTEMPTY and EEXIST as the same value
    222222    case ENOTEMPTY: return make_error_condition( directory_not_empty );
    223223  # endif // ENOTEMPTY != EEXIST
     224  # if ENOTRECOVERABLE != ECONNRESET // the same on some Broadcom chips
    224225    case ENOTRECOVERABLE: return make_error_condition( state_not_recoverable );
     226  # endif // ENOTRECOVERABLE != ECONNRESET
    225227    case ENOTSOCK: return make_error_condition( not_a_socket );
    226228    case ENOTSUP: return make_error_condition( not_supported );
    227229    case ENOTTY: return make_error_condition( inappropriate_io_control_operation );
     
    230232    case EOPNOTSUPP: return make_error_condition( operation_not_supported );
    231233  # endif // EOPNOTSUPP != ENOTSUP
    232234    case EOVERFLOW: return make_error_condition( value_too_large );
     235  # if EOWNERDEAD != ECONNABORTED // the same on some Broadcom chips
    233236    case EOWNERDEAD: return make_error_condition( owner_dead );
     237  # endif // EOWNERDEAD != ECONNABORTED
    234238    case EPERM: return make_error_condition( operation_not_permitted );
    235239    case EPIPE: return make_error_condition( broken_pipe );
    236240    case EPROTO: return make_error_condition( protocol_error );