]> err.no Git - util-linux/commit
build-sys: missing header when NLS is disabled
authorGabriel Barazer <gabriel@oxeva.fr>
Fri, 20 Jul 2007 15:11:38 +0000 (17:11 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Jul 2007 12:03:13 +0000 (14:03 +0200)
commit392f76cf9a0a1f8699891e3d32c6c1bd373992cb
tree582029bd87fd1d891458745f6566d2d31b83f058
parentd6ca1ec176c38ba3e57246aabd55ce20b4e971cf
build-sys: missing header when NLS is disabled

Compiling utils fail when disable NLS with the --disable-nls switch.
"mkfs.c:46: error: 'LC_ALL' undeclared (first use in this function)"
It is due to a missing locale.h header : When enabling NLS, nls.h
includes libintl.h, which in turn includes locale.h. When disabling NLS,
libintl.h isn't anymore included nor locale.h, which is needed for the
setlocale() calls.

Signed-off-by: Gabriel Barazer <gabriel@oxeva.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
include/nls.h