From 5e9ca5508d27798b8b90b0dd46553aa927b5788c Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Wed, 14 Jun 2017 14:38:01 +0100 Subject: [PATCH] Use sys/uio.h for writev() With glibc >= 2.25.90 writev() is only available if you explicitly include sys/uio.h. This matches the documented requirements, but older glibc and other *NIX pulled in writev indirectly so the bug wasn't noticed previously. Signed-off-by: Daniel P. Berrange --- src/util/virlog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virlog.c b/src/util/virlog.c index 7933e1a7a0..2228cf645a 100644 --- a/src/util/virlog.c +++ b/src/util/virlog.c @@ -32,6 +32,7 @@ #include #include #include +#include #if HAVE_SYSLOG_H # include #endif