compile if MSG_ZEROCOPY is not defined by libc

This commit is contained in:
leitner 2017-11-24 17:21:10 +00:00
parent f8c4132df0
commit e4a2f4d068

View File

@ -224,6 +224,9 @@ eagain:
#ifdef MSG_ZEROCOPY
static int nozerocopy;
int dozerocopy=1;
#else
const int nozerocopy=0;
const int dozerocopy=1;
#endif
if (nozerocopy && dozerocopy==0 && docork<0) { /* write+writev */
if (headers==1) /* cosmetics for strace */