From: Theodore Ts'o Date: Fri, 19 Sep 2014 04:46:41 +0000 (-0400) Subject: create_inode: don't indiscriminately #include "nls-enable.h" X-Git-Tag: v1.43-WIP-2015-05-18~175 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c49965fb69e7a8fac7043bea186323aa1c2197a;p=thirdparty%2Fe2fsprogs.git create_inode: don't indiscriminately #include "nls-enable.h" The create_inode.h header file is pulled in by debugfs, which is not internationalized. It had no business pulling in nls-enable.h; that header file should only be used in specific .c files that support internationalization. Signed-off-by: Theodore Ts'o --- diff --git a/misc/create_inode.c b/misc/create_inode.c index 7f5797979..cf7c0970a 100644 --- a/misc/create_inode.c +++ b/misc/create_inode.c @@ -17,6 +17,7 @@ #endif #include "create_inode.h" +#include "nls-enable.h" #if __STDC_VERSION__ < 199901L # if __GNUC__ >= 2 diff --git a/misc/create_inode.h b/misc/create_inode.h index 067bf960b..145fd57bc 100644 --- a/misc/create_inode.h +++ b/misc/create_inode.h @@ -7,7 +7,6 @@ #include "et/com_err.h" #include "e2p/e2p.h" #include "ext2fs/ext2fs.h" -#include "nls-enable.h" struct hdlink_s { diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 69045b24b..f09351ddd 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -58,6 +58,7 @@ extern int optind; #include "quota/quotaio.h" #include "mke2fs.h" #include "create_inode.h" +#include "nls-enable.h" #define STRIDE_LENGTH 8