Commit 0649590d authored by jan.koester's avatar jan.koester
Browse files

test

parent dc1160d0
Loading
Loading
Loading
Loading
+7 −2
Changes for src/posix/udp.cpp: 7 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -56,8 +56,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define UDP_GRO 104
#endif

// macOS lacks sendmmsg/recvmmsg; FreeBSD 11+ and Linux have them.
#if defined(__APPLE__)
// macOS lacks sendmmsg/recvmmsg; so do OpenBSD, NetBSD and DragonFly BSD --
// only FreeBSD 11+ and Linux have them. This guard previously only checked
// __APPLE__, so every other BSD unconditionally called ::sendmmsg/::recvmmsg
// (declared, if at all, only via a stray <sys/uio.h> comment, not an actual
// prototype) -- whatever happened to link/run before was accidental, not a
// tested code path.
#if defined(__APPLE__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#define NETPLUS_NO_MMSG 1
#endif