[Spice-devel] [PATCH spice-server] Move some include from header to source
Frediano Ziglio
fziglio at redhat.com
Mon Nov 28 14:27:10 UTC 2016
Now that RedStatFile is private there is no need
to include some headers in stat-file.h.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/stat-file.c | 2 ++
server/stat-file.h | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/server/stat-file.c b/server/stat-file.c
index d1e25ce..57b6110 100644
--- a/server/stat-file.c
+++ b/server/stat-file.c
@@ -25,7 +25,9 @@
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
+#include <pthread.h>
#include <sys/mman.h>
+#include <spice/stats.h>
#include <common/log.h>
#include <common/mem.h>
diff --git a/server/stat-file.h b/server/stat-file.h
index 903b68b..0affb90 100644
--- a/server/stat-file.h
+++ b/server/stat-file.h
@@ -18,8 +18,7 @@
#ifndef STAT_FILE_H_
#define STAT_FILE_H_
-#include <pthread.h>
-#include <spice/stats.h>
+#include <stdint.h>
typedef uint32_t StatNodeRef;
#define INVALID_STAT_REF (~(StatNodeRef)0)
--
2.9.3
More information about the Spice-devel
mailing list