diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-03 15:21:44 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-03 15:21:44 +0200 |
commit | 5fa153b18661e3651e1cc57bb3f477f9bef37f8f (patch) | |
tree | f6be9cd9c87b7b0e78ba40163f5980b6e1492845 /examples/to-xml.c | |
parent | 58e7e42033b1ac5044ae03f0aa5d5082c5fdb497 (diff) | |
download | libguestfs-5fa153b18661e3651e1cc57bb3f477f9bef37f8f.tar.gz libguestfs-5fa153b18661e3651e1cc57bb3f477f9bef37f8f.tar.xz libguestfs-5fa153b18661e3651e1cc57bb3f477f9bef37f8f.zip |
Guard #inclusion of config.h in examples.
* examples/hello.c [HAVE_CONFIG_H]: Include <config.h> conditionally.
* examples/to-xml.c: Likewise.
Diffstat (limited to 'examples/to-xml.c')
-rw-r--r-- | examples/to-xml.c | 4 |
1 files changed, 3 insertions, 1 deletions
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> |