[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libvir] [PATCH] Fix a "make syntax-check" failure.



"make syntax-check" reported this:

    src/capabilities.c
    Makefile.maint: the above files do not include <config.h>
    make: *** [sc_require_config_h] Error 1

The fix is so trivial it's barely worth posting, but just in case...
And besides, it's good policy.

	Fix a "make syntax-check" failure.
	* src/capabilities.c: Include <config.h> from the .c file,
	* src/capabilities.h: ... not from the .h file.

---
 src/capabilities.c |    4 +++-
 src/capabilities.h |    3 ---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/capabilities.c b/src/capabilities.c
index 94f7d17..263935c 100644
--- a/src/capabilities.c
+++ b/src/capabilities.c
@@ -21,6 +21,8 @@
  * Author: Daniel P. Berrange <berrange redhat com>
  */

+#include <config.h>
+
 #include "capabilities.h"
 #include "buf.h"

@@ -30,7 +32,7 @@
  * @arch: host machine architecture
  * @offlineMigrate: non-zero if offline migration is available
  * @liveMigrate: non-zero if live migration is available
- * 
+ *
  * Allocate a new capabilities object
  */
 virCapsPtr
diff --git a/src/capabilities.h b/src/capabilities.h
index 97bd06f..b379e51 100644
--- a/src/capabilities.h
+++ b/src/capabilities.h
@@ -24,9 +24,6 @@
 #ifndef __VIR_CAPABILITIES_H
 #define __VIR_CAPABILITIES_H

-#include <config.h>
-
-
 typedef struct _virCapsGuestFeature virCapsGuestFeature;
 typedef virCapsGuestFeature *virCapsGuestFeaturePtr;
 struct _virCapsGuestFeature {
--
1.5.4.3.231.gc0a6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]