Browse Source

compile if MSG_ZEROCOPY is not defined by libc

master
Felix von Leitner 5 years ago
parent
commit
0073f743db
  1. 3
      io/iob_send.c

3
io/iob_send.c

@ -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 */

Loading…
Cancel
Save