summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2017-11-24 17:21:10 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2017-11-24 17:21:10 +0000
commit0073f743dbfa6d6bcc5c7aa1b8d553d5cf7507c9 (patch)
treec72374d879fe48e6e0873c6f5b208d04d8eadead
parent84436cb2c603f453063a0cc20b1735d368b90c9d (diff)
downloadlibowfat-0073f743dbfa6d6bcc5c7aa1b8d553d5cf7507c9.tar.gz
libowfat-0073f743dbfa6d6bcc5c7aa1b8d553d5cf7507c9.zip
compile if MSG_ZEROCOPY is not defined by libc
-rw-r--r--io/iob_send.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io/iob_send.c b/io/iob_send.c
index 447ca53..10a6e8c 100644
--- a/io/iob_send.c
+++ b/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 */