X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=test-tool%2Ftest-tool.c;h=223cafca4ae232ec493c725ce17a964d4bf24efe;hp=39139e580923a1f7334a6fe9e45bdf5df3c06c5f;hb=a403e74355d2ef9a45041c931ed68204007905c5;hpb=a6025c11d97ed5802b3729a93d224d2baa20ff12 diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c index 39139e5..223cafc 100644 --- a/test-tool/test-tool.c +++ b/test-tool/test-tool.c @@ -29,6 +29,8 @@ #include #include #include +#include +#include #include @@ -41,6 +43,13 @@ #define N_(str) str #endif +#if !ENABLE_NLS +#undef textdomain +#define textdomain(Domainname) /* empty */ +#undef bindtextdomain +#define bindtextdomain(Domainname, Dirname) /* empty */ +#endif + #define STREQ(a,b) (strcmp((a),(b)) == 0) #define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0) #define STRNEQ(a,b) (strcmp((a),(b)) != 0) @@ -229,7 +238,7 @@ main (int argc, char *argv[]) exit (EXIT_FAILURE); } - if (guestfs_mount (g, "/dev/sda1", "/") == -1) { + if (guestfs_mount_options (g, "", "/dev/sda1", "/") == -1) { fprintf (stderr, _("libguestfs-test-tool: failed to mount /dev/sda1 on /\n")); exit (EXIT_FAILURE);