summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/hello.c4
-rw-r--r--examples/to-xml.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/hello.c b/examples/hello.c
index a8649f37..1c12f8ea 100644
--- a/examples/hello.c
+++ b/examples/hello.c
@@ -4,7 +4,9 @@
* hello guest.img /dev/VolGroup00/LogVol00
*/
-#include <config.h>
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/examples/to-xml.c b/examples/to-xml.c
index 5b75244e..a62660ce 100644
--- a/examples/to-xml.c
+++ b/examples/to-xml.c
@@ -7,7 +7,9 @@
* to-xml guest.img [guest.img ...]
*/
-#include <config.h>
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>