summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-06-02 17:36:20 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-06-02 17:36:20 +0200
commitb018208d5901873a374d08a98cf31e3bb89d12d0 (patch)
treebe42b87e5d9811f572eebf1204f11816b59c765a
parentb3875624ba409160da6ad9292b5ec1e1ec5f2bef (diff)
UDP fixed on FreeBSD
readv and writev are defined in sys/uio.h according to POSIX standard. Not including this header caused build to fail on FreeBSD. This patch fixed the problem. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r--src/udp_sender.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/udp_sender.cpp b/src/udp_sender.cpp
index ddcffbb..934eed7 100644
--- a/src/udp_sender.cpp
+++ b/src/udp_sender.cpp
@@ -20,6 +20,7 @@
#include "platform.hpp"
#include <stdlib.h>
+#include <sys/uio.h>
#include "io_thread.hpp"
#include "udp_sender.hpp"