]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix EPROTO on OpenBSD
authorKern Sibbald <kern@sibbald.com>
Wed, 15 Mar 2017 08:02:12 +0000 (09:02 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 15 Mar 2017 08:02:12 +0000 (09:02 +0100)
bacula/src/lib/bnet.c

index 4eddee21f1db583c21979ff495a9315eba983fdd..17a4484d9dfb552650627efa9c762bf42432b2c2 100644 (file)
@@ -629,12 +629,14 @@ int set_socket_errno(int sockstat)
       /* Handle errrors from prior connections as EAGAIN */
       switch (errno) {
          case ENETDOWN:
+#ifdef EPROTO
          case EPROTO:
-         case ENOPROTOOPT:
-         case EHOSTDOWN:
+#endif
 #ifdef ENONET
          case ENONET:
 #endif
+         case ENOPROTOOPT:
+         case EHOSTDOWN:
          case EHOSTUNREACH:
          case EOPNOTSUPP:
          case ENETUNREACH: