]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Include <locale.h> to avoid error: 'LC_ALL' undeclared.
authorDaniel Verite <daniel@verite.pro>
Fri, 8 Jun 2012 20:30:39 +0000 (22:30 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Jun 2012 17:21:40 +0000 (10:21 -0700)
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 <behlendorf1@llnl.gov>
Closes #724

cmd/mount_zfs/mount_zfs.c

index 1a8c98cd73b25b9521d722cd84bb3e4273ab2959..45c291e04ce000ab3d56d84d6da58d4c8d7b1a28 100644 (file)
@@ -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 */