From: Daniel Verite Date: Fri, 8 Jun 2012 20:30:39 +0000 (+0200) Subject: Include to avoid error: 'LC_ALL' undeclared. X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=92e91da20839ee50536223bedf2ba4fb7d2fae71;p=zfs.git Include to avoid error: 'LC_ALL' undeclared. When compiling ZFS with CFLAGS=-O0 it will trigger the following error. Resolve the issue by properly including locale.h. ../../cmd/mount_zfs/mount_zfs.c: In function 'main': ../../cmd/mount_zfs/mount_zfs.c:318:2: warning: implicit declaration of function 'setlocale' [-Wimplicit-function-declaration] ../../cmd/mount_zfs/mount_zfs.c:318:19: error: 'LC_ALL' undeclared (first use in this function) Signed-off-by: Brian Behlendorf Closes #724 --- diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c index 1a8c98c..45c291e 100644 --- a/cmd/mount_zfs/mount_zfs.c +++ b/cmd/mount_zfs/mount_zfs.c @@ -30,6 +30,7 @@ #include #include #include +#include #ifdef HAVE_LIBSELINUX #include #endif /* HAVE_LIBSELINUX */