compile if MSG_ZEROCOPY is not defined by libc

master
leitner 7 years ago
parent f8c4132df0
commit e4a2f4d068

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

Loading…
Cancel
Save