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>
This commit is contained in:
Natanael Copa 2011-08-30 11:50:28 +00:00 committed by Karel Zak
parent b89fdd9c05
commit 3c911718df
1 changed files with 2 additions and 0 deletions

View File

@ -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>