diff options
author | Natanael Copa | 2011-08-30 13:50:28 +0200 |
---|---|---|
committer | Karel Zak | 2011-09-07 07:30:35 +0200 |
commit | 3c911718df6df8d4b8fe31c9441cac6ff3d9e765 (patch) | |
tree | 3a9b6a6ecb11eb00ebe6e21f967998e39ed96e39 | |
parent | write: fix path for freopen() (diff) | |
download | kernel-qcow2-util-linux-3c911718df6df8d4b8fe31c9441cac6ff3d9e765.tar.gz kernel-qcow2-util-linux-3c911718df6df8d4b8fe31c9441cac6ff3d9e765.tar.xz kernel-qcow2-util-linux-3c911718df6df8d4b8fe31c9441cac6ff3d9e765.zip |
script: fix building with --disable-nls
We should only include the libintl.h when NLS is requested.
This fixes issue when building util-linux with uClibc.
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
-rw-r--r-- | term-utils/script.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index d96ca2fc4..99748a1c9 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -55,7 +55,9 @@ #include <getopt.h> #include <unistd.h> #include <fcntl.h> +#ifdef ENABLE_NLS #include <libintl.h> +#endif #include <limits.h> #include <locale.h> #include <stddef.h> |