Hello Martin,

2018-08-14 12:56 GMT+02:00 Martin Simmons <mar...@lispworks.com>:

> Sorry to say that it doesn't compile on FreeBSD (see below).
>
> The warnings about BSOCK::recv are probably generic and occur in every
> file.
>

A standard Linux compile does not raise any warnings here.


>
> There is some hack for ENODATA in bsockcore.c, but not in bsock.c.
>

Yes, it should be in bsock.c too.

Could you check the following patch:

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";

best regards
-- 
Radosław Korzeniewski
rados...@korzeniewski.net
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to