3 Jul
2019
3 Jul
'19
4:17 p.m.
As MSG_MORE is only an optimization, define it to 0 on platforms which lack it, in particular older versions of FreeBSD. --- lib/internal.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/internal.h b/lib/internal.h index 0b4364a..a954169 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -34,6 +34,11 @@ #include "states.h" #include "unlocked.h" +/* MSG_MORE is an optimization. If not present, ignore it. */ +#ifndef MSG_MORE +#define MSG_MORE 0 +#endif + /* XXX This is the same as nbdkit, but probably it should be detected * from the server (NBD_INFO_BLOCK_SIZE) or made configurable. */ -- 2.22.0