From: Daniel P. Berrange Date: Wed, 14 Jun 2017 13:38:01 +0000 (+0100) Subject: Use sys/uio.h for writev() X-Git-Tag: v3.5.0-rc1~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e9ca5508d27798b8b90b0dd46553aa927b5788c;p=thirdparty%2Flibvirt.git 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 --- 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