aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Linton <jeremy.linton@arm.com>2017-02-03 14:29:43 -0600
committerWill Deacon <will.deacon@arm.com>2017-06-09 11:33:07 +0100
commitc0a985531f49c06fd05069024f4664740e6a0baf (patch)
treeef4f47b9133cbceb46c95ae418626c5df6b14e46
parent76392d29aeeafe2a26c2ec06156a43e11b6cadd6 (diff)
downloadkvmtool-c0a985531f49c06fd05069024f4664740e6a0baf.tar.gz
kvmtool: makedev should be sourced from sysmacros
makedev() should be sourced from sys/sysmacros.h rather than sys/types.h. This is because glibc is moving away from having it available in types.h. https://patchwork.ozlabs.org/patch/611994/ Signed-off-by: Jeremy Linton <jeremy.linton@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--include/kvm/virtio-9p.h1
-rw-r--r--virtio/9p.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/kvm/virtio-9p.h b/include/kvm/virtio-9p.h
index 19ffe505..3ea76987 100644
--- a/include/kvm/virtio-9p.h
+++ b/include/kvm/virtio-9p.h
@@ -5,7 +5,6 @@
#include "kvm/threadpool.h"
#include "kvm/parse-options.h"
-#include <sys/types.h>
#include <dirent.h>
#include <linux/list.h>
#include <linux/rbtree.h>
diff --git a/virtio/9p.c b/virtio/9p.c
index 6acbfdda..69fdc4be 100644
--- a/virtio/9p.c
+++ b/virtio/9p.c
@@ -11,6 +11,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
+#include <sys/sysmacros.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>