[Libguestfs] [PATCH libnbd 2/2] freebsd: Ignore missing MSG_MORE on older versions of FreeBSD.

Richard W.M. Jones rjones at redhat.com
Wed Jul 3 16:17:44 UTC 2019


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




More information about the Libguestfs mailing list