From aa90fe58f3fcc60b993a409b6a97a35989143bc8 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 15 Mar 2017 09:02:12 +0100 Subject: [PATCH] Fix EPROTO on OpenBSD --- bacula/src/lib/bnet.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bacula/src/lib/bnet.c b/bacula/src/lib/bnet.c index 4eddee21f1..17a4484d9d 100644 --- a/bacula/src/lib/bnet.c +++ b/bacula/src/lib/bnet.c @@ -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: -- 2.39.5