Guard #inclusion of config.h in examples.
[libguestfs.git] / examples / to-xml.c
index 5b75244..a62660c 100644 (file)
@@ -7,7 +7,9 @@
  *   to-xml guest.img [guest.img ...]
  */
 
  *   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>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>