]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Don't call UNEXPECTED_ERROR if setsockopt(SO_TIMESTAMP) returns ENOPROTOOPT.
authorBrian Wellington <source@isc.org>
Thu, 12 Oct 2000 00:35:49 +0000 (00:35 +0000)
committerBrian Wellington <source@isc.org>
Thu, 12 Oct 2000 00:35:49 +0000 (00:35 +0000)
lib/isc/unix/socket.c

index d2ec57e86d443c716863f40fe0981f5cd241956b..e7412bd652de21660c90b7dec3332316923d00b5 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: socket.c,v 1.169 2000/10/07 00:16:50 bwelling Exp $ */
+/* $Id: socket.c,v 1.170 2000/10/12 00:35:49 bwelling Exp $ */
 
 #include <config.h>
 
@@ -1262,7 +1262,8 @@ isc_socket_create(isc_socketmgr_t *manager, int pf, isc_sockettype_t type,
 
 #if defined(SO_TIMESTAMP)
                if (setsockopt(sock->fd, SOL_SOCKET, SO_TIMESTAMP,
-                              (void *)&on, sizeof on) < 0) {
+                              (void *)&on, sizeof on) < 0
+                   && errno != ENOPROTOOPT) {
                        UNEXPECTED_ERROR(__FILE__, __LINE__,
                                         "setsockopt(%d, SO_TIMESTAMP) "
                                         "failed: %s",