diff options
Diffstat (limited to 'ace/OS_NS_sys_socket.inl')
-rw-r--r-- | ace/OS_NS_sys_socket.inl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/OS_NS_sys_socket.inl b/ace/OS_NS_sys_socket.inl index 20ab16cd001..b7b3c8d3151 100644 --- a/ace/OS_NS_sys_socket.inl +++ b/ace/OS_NS_sys_socket.inl @@ -858,7 +858,11 @@ ACE_OS::setsockopt (ACE_HANDLE handle, int, -1, result); +#if defined (WSAEOPNOTSUPP) if (result == -1 && errno == WSAEOPNOTSUPP) +#else + if (result == -1) +#endif /* WSAEOPNOTSUPP */ errno = ENOTSUP; return result; } |