[Spice-devel] [PATCH 06/10] syntax-check: Add missing #include <config.h>

Christophe Fergeau cfergeau at redhat.com
Wed Oct 7 09:45:13 PDT 2015


---
 server/spice_bitmap_utils.c | 3 +++
 server/spice_image_cache.c  | 3 +++
 server/tests/replay.c       | 4 ++++
 3 files changed, 10 insertions(+)

diff --git a/server/spice_bitmap_utils.c b/server/spice_bitmap_utils.c
index aa7d71b..ddbd2a9 100644
--- a/server/spice_bitmap_utils.c
+++ b/server/spice_bitmap_utils.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <stdio.h>
 
 #include "common/log.h"
diff --git a/server/spice_image_cache.c b/server/spice_image_cache.c
index 291094c..c20eac8 100644
--- a/server/spice_image_cache.c
+++ b/server/spice_image_cache.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include "spice_image_cache.h"
 
 static ImageCacheItem *image_cache_find(ImageCache *cache, uint64_t id)
diff --git a/server/tests/replay.c b/server/tests/replay.c
index a17037c..220bfe7 100644
--- a/server/tests/replay.c
+++ b/server/tests/replay.c
@@ -1,6 +1,10 @@
 /* Replay a previously recorded file (via SPICE_WORKER_RECORD_FILENAME)
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
-- 
2.5.0



More information about the Spice-devel mailing list