[Spice-devel] [PATCH 14/17] Add missing includes of config.h

Daniel P. Berrange berrange at redhat.com
Tue Jan 10 07:58:35 PST 2012


From: "Daniel P. Berrange" <berrange at redhat.com>

Not all files were including config.h
---
 common/backtrace.c                              |    2 +-
 server/dispatcher.c                             |    1 +
 server/main_dispatcher.c                        |    1 +
 server/tests/basic_event_loop.c                 |    1 +
 server/tests/test_display_base.c                |    1 +
 server/tests/test_display_no_ssl.c              |    1 +
 server/tests/test_display_streaming.c           |    1 +
 server/tests/test_empty_success.c               |    1 +
 server/tests/test_fail_on_null_core_interface.c |    1 +
 server/tests/test_just_sockets_no_ssl.c         |    1 +
 server/tests/test_playback.c                    |    1 +
 tools/bitmap_to_c.c                             |    1 +
 tools/icon_to_c.c                               |    1 +
 tools/reds_stat.c                               |    1 +
 14 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/common/backtrace.c b/common/backtrace.c
index c51b2eb..d80f9f9 100644
--- a/common/backtrace.c
+++ b/common/backtrace.c
@@ -21,7 +21,7 @@
  * Copyright (C) 2008 Red Hat, Inc.
  */
 
-#include "config.h"
+#include <config.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/server/dispatcher.c b/server/dispatcher.c
index 90e46e3..b123fa8 100644
--- a/server/dispatcher.c
+++ b/server/dispatcher.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <unistd.h>
 #include <errno.h>
 #include <assert.h>
diff --git a/server/main_dispatcher.c b/server/main_dispatcher.c
index 2ccf534..cf44b40 100644
--- a/server/main_dispatcher.c
+++ b/server/main_dispatcher.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <unistd.h>
 #include <string.h>
 #include <errno.h>
diff --git a/server/tests/basic_event_loop.c b/server/tests/basic_event_loop.c
index 7e57527..c0ee705 100644
--- a/server/tests/basic_event_loop.c
+++ b/server/tests/basic_event_loop.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/time.h>
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
index b31e6fb..ef5a543 100644
--- a/server/tests/test_display_base.c
+++ b/server/tests/test_display_base.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <stdlib.h>
 #include <math.h>
 #include <string.h>
diff --git a/server/tests/test_display_no_ssl.c b/server/tests/test_display_no_ssl.c
index 3877c8d..a27bb00 100644
--- a/server/tests/test_display_no_ssl.c
+++ b/server/tests/test_display_no_ssl.c
@@ -6,6 +6,7 @@
  * existing ones in the test_display_base supplied queue.
  */
 
+#include <config.h>
 #include <stdlib.h>
 #include "test_display_base.h"
 
diff --git a/server/tests/test_display_streaming.c b/server/tests/test_display_streaming.c
index e7d5156..025541d 100644
--- a/server/tests/test_display_streaming.c
+++ b/server/tests/test_display_streaming.c
@@ -4,6 +4,7 @@
  * TODO: stop updating same rect, check (prog) that stream stops
  */
 
+#include <config.h>
 #include "test_display_base.h"
 
 int simple_commands[] = {
diff --git a/server/tests/test_empty_success.c b/server/tests/test_empty_success.c
index 63cf2a2..fb46aa8 100644
--- a/server/tests/test_empty_success.c
+++ b/server/tests/test_empty_success.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <stdlib.h>
 #include <spice.h>
 
diff --git a/server/tests/test_fail_on_null_core_interface.c b/server/tests/test_fail_on_null_core_interface.c
index 105dd63..23261a2 100644
--- a/server/tests/test_fail_on_null_core_interface.c
+++ b/server/tests/test_fail_on_null_core_interface.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <spice.h>
 
 int main(void)
diff --git a/server/tests/test_just_sockets_no_ssl.c b/server/tests/test_just_sockets_no_ssl.c
index f0218b8..ac5403b 100644
--- a/server/tests/test_just_sockets_no_ssl.c
+++ b/server/tests/test_just_sockets_no_ssl.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <sys/select.h>
 #include <spice.h>
 #include "basic_event_loop.h"
diff --git a/server/tests/test_playback.c b/server/tests/test_playback.c
index 1de2d28..ed1b766 100644
--- a/server/tests/test_playback.c
+++ b/server/tests/test_playback.c
@@ -1,3 +1,4 @@
+#include <config.h>
 #include <stdio.h>
 #include <sys/select.h>
 #include <sys/time.h>
diff --git a/tools/bitmap_to_c.c b/tools/bitmap_to_c.c
index 7e9b303..01b925e 100644
--- a/tools/bitmap_to_c.c
+++ b/tools/bitmap_to_c.c
@@ -15,6 +15,7 @@
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 
+#include <config.h>
 #include <string.h>
 #include <stdint.h>
 #include <unistd.h>
diff --git a/tools/icon_to_c.c b/tools/icon_to_c.c
index 0957c2b..882330e 100644
--- a/tools/icon_to_c.c
+++ b/tools/icon_to_c.c
@@ -15,6 +15,7 @@
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 
+#include <config.h>
 #include <string.h>
 #include <stdint.h>
 #include <unistd.h>
diff --git a/tools/reds_stat.c b/tools/reds_stat.c
index 3ff13c8..39d17af 100644
--- a/tools/reds_stat.c
+++ b/tools/reds_stat.c
@@ -16,6 +16,7 @@
 */
 
 #define _GNU_SOURCE
+#include <config.h>
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <fcntl.h>
-- 
1.7.7.5



More information about the Spice-devel mailing list