]> git.proxmox.com Git - mirror_ovs.git/commit
socket-util: Emulate recvmmsg() and sendmmsg() on Linux only.
authorBen Pfaff <blp@ovn.org>
Mon, 13 Jan 2020 18:03:04 +0000 (10:03 -0800)
committerBen Pfaff <blp@ovn.org>
Tue, 14 Jan 2020 18:28:41 +0000 (10:28 -0800)
commitb9b7b989d105dc42514afafeff6341f3a04e398c
tree5e3566f1e165cb85506b912cda4bd901ee36459e
parent67eb8110171f08b5ceda2c682451995735adc8e4
socket-util: Emulate recvmmsg() and sendmmsg() on Linux only.

These functions failed to build on OS X because MSG_WAITFORONE is not
defined there.  There are pitfalls for trying to define our own MSG_*
constants, since it's hard to pick a constant that is not used by the
system already.  Because OVS only uses recvmmsg() and sendmmsg() on
Linux, it seems easiest to just emulate them there.

Reported-by: Ilya Maximets <i.maximets@ovn.org>
Acked-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/socket-util.c
lib/socket-util.h