From: Kern Sibbald Date: Wed, 15 Mar 2017 08:02:12 +0000 (+0100) Subject: Fix EPROTO on OpenBSD X-Git-Tag: Release-7.4.7~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa90fe58f3fcc60b993a409b6a97a35989143bc8;p=bacula%2Fbacula Fix EPROTO on OpenBSD --- 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: