[Spice-devel] [PATCH spice-server 2/2] syntax-check: Add missing #include <config.h>

Pavel Grunt pgrunt at redhat.com
Fri Nov 6 06:15:00 PST 2015


---
 server/cache_item.tmpl.c       | 4 ++++
 server/cursor-channel.c        | 4 ++++
 server/display-channel.c       | 4 ++++
 server/red_bitmap_utils_tmpl.c | 3 +++
 server/tree.c                  | 4 ++++
 5 files changed, 19 insertions(+)

diff --git a/server/cache_item.tmpl.c b/server/cache_item.tmpl.c
index dc314c0..09add79 100644
--- a/server/cache_item.tmpl.c
+++ b/server/cache_item.tmpl.c
@@ -15,6 +15,10 @@
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #if defined(CLIENT_CURSOR_CACHE)
 
 #define CACHE_NAME cursor_cache
diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index 6d648b1..aafc807 100644
--- a/server/cursor-channel.c
+++ b/server/cursor-channel.c
@@ -15,6 +15,10 @@
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <glib.h>
 #include "common/generated_server_marshallers.h"
 #include "cursor-channel.h"
diff --git a/server/display-channel.c b/server/display-channel.c
index 5deab13..6aefe09 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -14,6 +14,10 @@
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "display-channel.h"
 
 void display_channel_compress_stats_reset(DisplayChannel *display_channel)
diff --git a/server/red_bitmap_utils_tmpl.c b/server/red_bitmap_utils_tmpl.c
index df13c81..35f8227 100644
--- a/server/red_bitmap_utils_tmpl.c
+++ b/server/red_bitmap_utils_tmpl.c
@@ -14,6 +14,9 @@
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #ifdef RED_BITMAP_UTILS_RGB16
 #define PIXEL rgb16_pixel_t
diff --git a/server/tree.c b/server/tree.c
index 64fa6db..bf50edf 100644
--- a/server/tree.c
+++ b/server/tree.c
@@ -14,6 +14,10 @@
    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <spice/qxl_dev.h>
 #include "red_parse_qxl.h"
 #include "display-channel.h"
-- 
2.5.0



More information about the Spice-devel mailing list