From 92e91da20839ee50536223bedf2ba4fb7d2fae71 Mon Sep 17 00:00:00 2001 From: Daniel Verite Date: Fri, 8 Jun 2012 22:30:39 +0200 Subject: [PATCH] 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 --- cmd/mount_zfs/mount_zfs.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 1.8.3.1