]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Use sys/uio.h for writev()
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 14 Jun 2017 13:38:01 +0000 (14:38 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 14 Jun 2017 14:01:42 +0000 (15:01 +0100)
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 <berrange@redhat.com>
src/util/virlog.c

index 7933e1a7a043eefbd0bd23fd94189c5aa3b646a6..2228cf645a3b90e508cb8f5b38ed6eb867b45b30 100644 (file)
@@ -32,6 +32,7 @@
 #include <unistd.h>
 #include <execinfo.h>
 #include <regex.h>
+#include <sys/uio.h>
 #if HAVE_SYSLOG_H
 # include <syslog.h>
 #endif