summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kuhnle <simon@blarzwurst.de>2013-01-04 17:52:35 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-01-04 17:52:35 +0100
commit1c17274178c432275d258ef0843d4bfbc999a450 (patch)
tree5ac84c50ffe6b23521ae81ebfa648d1b7a40e3d7
parentda56eb6978f20a4c095bb54cc3524599a49c97d5 (diff)
downloadweechat-1c17274178c432275d258ef0843d4bfbc999a450.zip
core: fix compilation on OpenBSD (bug #38022)
File "sys/uio.h" needs to be included explicitly for use of "struct iovec" on OpenBSD. Signed-off-by: Simon Kuhnle <simon@blarzwurst.de>
-rw-r--r--src/core/wee-network.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-network.c b/src/core/wee-network.c
index 6e37659aa..a6244730e 100644
--- a/src/core/wee-network.c
+++ b/src/core/wee-network.c
@@ -38,6 +38,9 @@
#include <errno.h>
#include <gcrypt.h>
#include <sys/time.h>
+#if defined(__OpenBSD__)
+#include <sys/uio.h>
+#endif
#ifdef HAVE_GNUTLS
#include <gnutls/gnutls.h>