Include <locale.h> in compilation units that use setlocale function.
[libguestfs.git] / rescue / virt-rescue.c
index 6224ad7..0189245 100644 (file)
@@ -24,6 +24,7 @@
 #include <unistd.h>
 #include <getopt.h>
 #include <errno.h>
+#include <locale.h>
 #include <assert.h>
 
 #include "progname.h"
@@ -36,6 +37,7 @@
 guestfs_h *g;
 
 int read_only = 0;
+int live = 0;
 int verbose = 0;
 int keys_from_stdin = 0;
 int echo_keys = 0;
@@ -239,6 +241,7 @@ main (int argc, char *argv[])
   assert (inspector == 0);
   assert (keys_from_stdin == 0);
   assert (echo_keys == 0);
+  assert (live == 0);
 
   /* Must be no extra arguments on the command line. */
   if (optind != argc)