X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=misc%2Fpartinfo.c;h=b79d1839d8cb3489cf97fbd5793be7298bbafecd;hb=aa773f808379cd0167281217bdcd7f3d87ae3201;hp=48b395f6ec9bae6de96fe2124b09f94920fb9766;hpb=efc6f628e15de95bcd13e4f0ee223cb42115d520;p=tools%2Fe2fsprogs.git diff --git a/misc/partinfo.c b/misc/partinfo.c index 48b395f..b79d183 100644 --- a/misc/partinfo.c +++ b/misc/partinfo.c @@ -7,6 +7,7 @@ * */ +#include "config.h" #include #include #ifdef HAVE_SYS_IOCTL_H @@ -17,7 +18,9 @@ #include #include #include -#include "nls-enable.h" +#include +#include "support/nls-enable.h" +#include "et/com_err.h" #if defined(__linux__) && defined(_IO) && !defined(BLKGETSIZE) #define BLKGETSIZE _IO(0x12,96) /* return device size */ @@ -34,6 +37,7 @@ int main(int argc, char **argv) setlocale(LC_CTYPE, ""); bindtextdomain(NLS_CAT_NAME, LOCALEDIR); textdomain(NLS_CAT_NAME); + set_com_err_gettext(gettext); #endif if (argc == 1) { fprintf(stderr, _("Usage: %s device...\n\nPrints out the "