>>>>> On Tue, 14 Aug 2018 17:00:53 +0200, Radosław Korzeniewski said:
> 
> Hello Martin,
> 
> 2018-08-14 16:34 GMT+02:00 Radosław Korzeniewski <rados...@korzeniewski.net>
> :
> 
> > 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.
> >
> 
> Could you check if the following patch fixes warnings? Thanks.
> 
> diff --git a/bacula/src/lib/bsock.h b/bacula/src/lib/bsock.h
> index b9558086a..e34dc5c40 100644
> --- a/bacula/src/lib/bsock.h
> +++ b/bacula/src/lib/bsock.h
> @@ -66,6 +66,7 @@ public:
>     BSOCK();
>     BSOCK(int sockfd);
>     ~BSOCK();
> +   int32_t recv(int len) { return recv(); };
>     int32_t recv();
>     bool send() { return send(0); };
>     bool send(int flags);

Yes, that fixes it.

__Martin

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