From 4dc986ca039cf75cc9cfaa3c4b083eb94f61a54c Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Thu, 9 Oct 2008 19:01:57 +0000 Subject: [PATCH] System: Only supply case EALREADY if EALREADY != EBUSY, to close a portion of ticket #2288 [SVN r49220] --- src/error_code.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/error_code.cpp b/src/error_code.cpp index 0124665..55fcfc6 100644 --- a/src/error_code.cpp +++ b/src/error_code.cpp @@ -166,7 +166,9 @@ namespace case EADDRNOTAVAIL: return make_error_condition( address_not_available ); case EAFNOSUPPORT: return make_error_condition( address_family_not_supported ); case EAGAIN: return make_error_condition( resource_unavailable_try_again ); +# if EALREADY != EBUSY // EALREADY and EBUSY are the same on QNX Neutrino case EALREADY: return make_error_condition( connection_already_in_progress ); +# endif case EBADF: return make_error_condition( bad_file_descriptor ); case EBADMSG: return make_error_condition( bad_message ); case EBUSY: return make_error_condition( device_or_resource_busy );