OSDN Git Service

debugfs: fix build on systems that don't have gettext built-in
authorTheodore Ts'o <tytso@mit.edu>
Sat, 18 Oct 2014 13:13:09 +0000 (09:13 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Oct 2014 13:13:09 +0000 (09:13 -0400)
Debugfs (unlike all of the other programs in e2fsprogs) is not set up
to use translated strings.  So when building misc/plausible.c for
debugfs, we need to disable NLS.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/nls-enable.h

index a91dcc1..2f62c01 100644 (file)
@@ -1,4 +1,4 @@
-#ifdef ENABLE_NLS
+#if defined(ENABLE_NLS) && !defined(DEBUGFS)
 #include <libintl.h>
 #include <locale.h>
 #define _(a) (gettext (a))