summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Verite <[email protected]>2012-06-08 22:30:39 +0200
committerBrian Behlendorf <[email protected]>2012-06-11 10:21:40 -0700
commit92e91da20839ee50536223bedf2ba4fb7d2fae71 (patch)
treebe0f30814e5fe7cadf1bd29e686e2fb213a6a175
parent6a0936babc14a44986265a12f206c41999bd48c3 (diff)
Include <locale.h> 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 <[email protected]> Closes #724
-rw-r--r--cmd/mount_zfs/mount_zfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/mount_zfs/mount_zfs.c b/cmd/mount_zfs/mount_zfs.c
index 1a8c98cd7..45c291e04 100644
--- a/cmd/mount_zfs/mount_zfs.c
+++ b/cmd/mount_zfs/mount_zfs.c
@@ -30,6 +30,7 @@
#include <sys/mount.h>
#include <sys/stat.h>
#include <libzfs.h>
+#include <locale.h>
#ifdef HAVE_LIBSELINUX
#include <selinux/selinux.h>
#endif /* HAVE_LIBSELINUX */