about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEudald Gubert i Roldan <hola@eudald.gr>2020-04-06 13:44:30 +0200
committerRaspbeguy <raspbeguy@users.noreply.github.com>2020-04-06 13:58:06 +0200
commit1c523ce4e3a1cdd04d7b45a06c0c81909899ffaa (patch)
treeaf082ffb7b7fb354f334186c7864554971e8ad42
parent8e642f443f7f31d48cd796e0032e0b6b52804b01 (diff)
downloadbtpd-1c523ce4e3a1cdd04d7b45a06c0c81909899ffaa.tar.gz
btpd-1c523ce4e3a1cdd04d7b45a06c0c81909899ffaa.zip
net.c problem workaround
-rw-r--r--btpd/net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/btpd/net.c b/btpd/net.c
index 0c64489..72071e7 100644
--- a/btpd/net.c
+++ b/btpd/net.c
@@ -3,6 +3,10 @@
 #include <sys/uio.h>
 #include <netdb.h>
 
+#ifndef IOV_MAX
+#define IOV_MAX 1024
+#endif
+
 static unsigned long m_bw_bytes_in;
 static unsigned long m_bw_bytes_out;