X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fhello.c;h=8b36ed44f41b64842e02876c8389e95eb5f605c2;hb=00425c073e5c0743ef425cd12108a85ac36b15f4;hp=a4cc43d579b45c1b15897ce5cad6d4e02459d15a;hpb=ff1f39794b2688f0fd6a0c367164e3d715136837;p=libguestfs.git diff --git a/examples/hello.c b/examples/hello.c index a4cc43d..8b36ed4 100644 --- a/examples/hello.c +++ b/examples/hello.c @@ -4,6 +4,9 @@ * hello guest.img /dev/VolGroup00/LogVol00 */ +#if HAVE_CONFIG_H +# include +#endif #include #include #include @@ -24,7 +27,6 @@ main (int argc, char *argv[]) if (guestfs_add_drive (g, argv[1]) == -1) exit (1); if (guestfs_launch (g) == -1) exit (1); - if (guestfs_wait_ready (g) == -1) exit (1); if (guestfs_mount (g, argv[2], "/") == -1) exit (1);