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.4.0~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7eecab2a72e518eccdcc21900f2d54bd6040edb0;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 a6e4d98c38..c6bed981de 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";