X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=sh%2Fhivexsh.c;h=faff83c7249e288cee640f75dfd6b75919f9ed43;hb=a6ba26dca8dd496bec71d65746b3c3b65e604f03;hp=fe5857ef664cdede366494817a6709211919e4bf;hpb=311b2f3a3ece99c75d68341e6fbdff810eeac082;p=hivex.git diff --git a/sh/hivexsh.c b/sh/hivexsh.c index fe5857e..faff83c 100644 --- a/sh/hivexsh.c +++ b/sh/hivexsh.c @@ -27,6 +27,11 @@ #include #include #include +#include + +#ifdef HAVE_LIBINTL_H +#include +#endif #ifdef HAVE_LIBREADLINE #include @@ -100,15 +105,17 @@ int main (int argc, char *argv[]) { setlocale (LC_ALL, ""); +#ifdef HAVE_BINDTEXTDOMAIN bindtextdomain (PACKAGE, LOCALEBASEDIR); textdomain (PACKAGE); +#endif int c; const char *filename = NULL; set_prompt_string (); - while ((c = getopt (argc, argv, "dfw")) != EOF) { + while ((c = getopt (argc, argv, "df:w")) != EOF) { switch (c) { case 'd': open_flags |= HIVEX_OPEN_DEBUG;