some old glibc may define MSG_ZEROCOPY but not SO_ZEROCOPY :-(

This commit is contained in:
leitner 2020-04-05 20:19:25 +00:00
parent 261420b7b6
commit 8b0450cd29

View File

@ -234,7 +234,7 @@ eagain:
else
sent=writev(s,v,headers);
} else {
#ifdef MSG_ZEROCOPY
#if defined(MSG_ZEROCOPY) && defined(SO_ZEROCOPY)
if (!nozerocopy && sum>=8*1024) {
/* MSG_ZEROCOPY has page table management overhead,
* it only pays off after 8k or so */