From: Jim Meyering Date: Mon, 3 Aug 2009 13:21:44 +0000 (+0200) Subject: Guard #inclusion of config.h in examples. X-Git-Tag: 1.0.66~34 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=5fa153b18661e3651e1cc57bb3f477f9bef37f8f Guard #inclusion of config.h in examples. * examples/hello.c [HAVE_CONFIG_H]: Include conditionally. * examples/to-xml.c: Likewise. --- diff --git a/examples/hello.c b/examples/hello.c index a8649f3..1c12f8e 100644 --- a/examples/hello.c +++ b/examples/hello.c @@ -4,7 +4,9 @@ * hello guest.img /dev/VolGroup00/LogVol00 */ -#include +#if HAVE_CONFIG_H +# include +#endif #include #include #include diff --git a/examples/to-xml.c b/examples/to-xml.c index 5b75244..a62660c 100644 --- a/examples/to-xml.c +++ b/examples/to-xml.c @@ -7,7 +7,9 @@ * to-xml guest.img [guest.img ...] */ -#include +#if HAVE_CONFIG_H +# include +#endif #include #include #include