[Spice-devel] [PATCH spice-server] Avoid recursive inclusion of headers

Frediano Ziglio fziglio at redhat.com
Thu Oct 20 11:27:26 UTC 2016


red-common.h included utils.h which included red-common.h

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/utils.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/utils.h b/server/utils.h
index 00631f8..c4b8b1e 100644
--- a/server/utils.h
+++ b/server/utils.h
@@ -18,7 +18,8 @@
 #ifndef UTILS_H_
 # define UTILS_H_
 
-#include "red-common.h"
+#include <stdint.h>
+#include <glib.h>
 
 #define SPICE_GNUC_VISIBLE __attribute__ ((visibility ("default")))
 
-- 
2.7.4



More information about the Spice-devel mailing list