From: Radosław Korzeniewski Date: Tue, 14 Aug 2018 14:46:50 +0000 (+0200) Subject: Fix bsock compilation problem in *BSD. X-Git-Tag: Release-9.2.2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eea817f035d32221ab46d1a4f95193cd4d6dbda7;p=thirdparty%2Fbacula.git Fix bsock compilation problem in *BSD. --- diff --git a/bacula/src/lib/bsock.c b/bacula/src/lib/bsock.c index a6e4d98c3..c6bed981d 100644 --- a/bacula/src/lib/bsock.c +++ b/bacula/src/lib/bsock.c @@ -40,6 +40,10 @@ #define BSOCK_DEBUG_LVL 900 +#if !defined(ENODATA) /* not defined on BSD systems */ +#define ENODATA EPIPE +#endif + /* Commands sent to Director */ static char hello[] = "Hello %s calling\n";