[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]