Browse Source

oops, the errno should have been ENOPROTOOPT

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac448@4058 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 14 years ago
parent
commit
ce6482880d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/lib/asiolink/tests/asiolink_unittest.cc

+ 3 - 3
src/lib/asiolink/tests/asiolink_unittest.cc

@@ -341,9 +341,9 @@ protected:
         int recv_options = 0;
         if (setsockopt(sock_, SOL_SOCKET, SO_RCVTIMEO, &timeo,
                        sizeof(timeo))) {
-            if (errno == EOPNOTSUPP) {
+            if (errno == ENOPROTOOPT) {
                 // Workaround for Solaris: it doesn't accept SO_RCVTIMEO
-                // with the error of EOPNOTSUPP.  Since this is a workaround
+                // with the error of ENOPROTOOPT.  Since this is a workaround
                 // for rare error cases anyway, we simply switch to the
                 // "don't wait" mode.  If we still find an error in recv()
                 // can happen often we'll consider a more complete solution.
@@ -722,7 +722,7 @@ TEST_F(ASIOLinkTest, recursiveTimeout) {
     const struct timeval timeo = { 10, 0 };
     int recv_options = 0;
     if (setsockopt(sock_, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo))) {
-        if (errno == EOPNOTSUPP) { // see ASIOLinkTest::recvUDP()
+        if (errno == ENOPROTOOPT) { // see ASIOLinkTest::recvUDP()
             recv_options = MSG_DONTWAIT;
         } else {
             isc_throw(IOError, "set RCVTIMEO failed: " << strerror(errno));