]> git.proxmox.com Git - mirror_zfs-debian.git/commit
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)
commit92e91da20839ee50536223bedf2ba4fb7d2fae71
treebe0f30814e5fe7cadf1bd29e686e2fb213a6a175
parent6a0936babc14a44986265a12f206c41999bd48c3
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 <behlendorf1@llnl.gov>
Closes #724
cmd/mount_zfs/mount_zfs.c